Bug 110872

Summary: feedstoragedummyimpl.cpp:139: operands to ?: have different types
Product: [Applications] akregator Reporter: Nick Thompson <nickthompson>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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