Browse Source

Slight Optimization

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
93563365ac
  1. 9
      src/rss.cpp

9
src/rss.cpp

@ -359,13 +359,12 @@ void RssManager::moveFile(RssFile* file, RssFolder* dest_folder) {
} }
void RssManager::saveStreamList(){ void RssManager::saveStreamList(){
QList<QPair<QString, QString> > streamsList;
QStringList streamsUrl; QStringList streamsUrl;
QStringList aliases; QStringList aliases;
QList<RssStream*> streams = getAllFeeds(); const QList<RssStream*> &streams = getAllFeeds();
foreach(RssStream *stream, streams) { foreach(const RssStream *stream, streams) {
QString stream_path = stream->getPath().join("\\"); const QString &stream_path = stream->getPath().join("\\");
qDebug("Saving stream path: %s", stream_path.toLocal8Bit().data()); qDebug("Saving stream path: %s", qPrintable(stream_path));
streamsUrl << stream_path; streamsUrl << stream_path;
aliases << stream->getName(); aliases << stream->getName();
} }

Loading…
Cancel
Save