Add a function to add posts to pools (unsure if it'll be ever used...)

This commit is contained in:
Luca Beltrame 2013-03-17 11:57:27 +01:00
parent 25fff7f879
commit ed7b5b06d3
2 changed files with 5 additions and 3 deletions

View file

@ -68,9 +68,9 @@ void DanbooruPool::addPosts(QList< int > posts)
m_posts.append(posts);
}
void DanbooruPool::addPosts(QStringList posts)
void DanbooruPool::addPosts(const QStringList& posts)
{
foreach (QString post, posts) {
foreach (const QString& post, posts) {
m_posts.append(post.toInt());
}
}

View file

@ -29,6 +29,8 @@
*
**/
// Qt
#include <QtCore/QObject>
#include <QtCore/QVariant>
#include <QtCore/QList>
@ -98,7 +100,7 @@ namespace Danbooru {
void addPost(int post);
void addPosts(QList<int> posts);
void addPosts(QStringList posts);
void addPosts(const QStringList& posts);
};
}; // namespace Danbooru