[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] filter_oe compile failure with older gcc
From:       Adriaan de Groot <groot () kde ! org>
Date:       2005-06-21 13:09:10
Message-ID: 200506211509.10463.groot () kde ! org
[Download RAW message or body]

On Tuesday 21 June 2005 14:56, thorsten@staerk.de wrote:
> feedstoragedummyimpl.cpp: In member function `virtual QStringList
>    Akregator::Backend::FeedStorageDummyImpl::articles(const QString&)':
> feedstoragedummyimpl.cpp:124: operands to ?: have different types
> make[4]: *** [feedstoragedummyimpl.lo] Error 1

That's

    return tag.isNull() ? d->entries.keys() : QStringList(); // TODO: respect 

now d->entries is a QMap<QString,Entry>, so my reading of keys() says that 
that is a QValueList<QString> --- which is exactly what QStringList is. I 
suspect the compiler is being deliberately obtuse. Try replacing the ? : 
ternary operator with a plain old if {} else {}.


-- 
These are your friends - Adem
    GPG: FEA2 A3FE Adriaan de Groot
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic