Convert to C++11 style for loops

This commit is contained in:
Luca Beltrame 2013-12-26 14:34:51 +01:00
commit 8b9e31d8e4
3 changed files with 9 additions and 13 deletions

View file

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