Bug 110872 - feedstoragedummyimpl.cpp:139: operands to ?: have different types
Summary: feedstoragedummyimpl.cpp:139: operands to ?: have different types
Status: RESOLVED WORKSFORME
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 11:03 UTC by Nick Thompson
Modified: 2005-08-17 10:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Thompson 2005-08-16 11:03:57 UTC
Version:            (using KDE KDE 3.4.90)
Installed from:    Compiled From Sources
Compiler:          gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42) 
OS:                Linux

Building KDE3.5-alpha1 (meta/kde) with konstruct gives the following compile error in akregator/src on RHEL3:

feedstoragedummyimpl.cpp:139: operands to ?: have different types

137 QStringList FeedStorageDummyImpl::articles(const QString& tag)
138 {
139     return tag.isNull() ? d->entries.keys() : d->taggedArticles[tag];
140 }
Comment 1 Frank Osterfeld 2005-08-17 00:29:47 UTC
SVN commit 449859 by osterfeld:

Compile fix. Please check if it really fixes compilation for your gcc version.
CCBUG: 110872


 M  +1 -1      feedstoragedummyimpl.cpp  


--- branches/KDE/3.5/kdepim/akregator/src/feedstoragedummyimpl.cpp #449858:449859
@@ -136,7 +136,7 @@
 
 QStringList FeedStorageDummyImpl::articles(const QString& tag)
 {
-    return tag.isNull() ? d->entries.keys() : d->taggedArticles[tag];
+    return tag.isNull() ? QStringList(d->entries.keys()) : d->taggedArticles[tag];
 }
 
 QStringList FeedStorageDummyImpl::articles(const Category& cat)
Comment 2 Nick Thompson 2005-08-17 10:58:11 UTC
Yep, that fixes it for me.

Thanks,
Nick
Comment 3 Nick Thompson 2005-08-17 10:59:27 UTC
Closed