diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-09 01:33:35 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-07-09 01:33:35 +0200 |
commit | 4054ee24a37e58ecfb18fcf4c307b987bf138c13 (patch) | |
tree | 4b8557f7ea9d6f478ea40c5511fb9a83874af0d1 /mainwindow.cpp | |
parent | 268ec9d3d93f5b5d4591c47f882e285e7eaec4de (diff) |
Revert "Enable C++11 and use it to simplify loops."
This reverts commit 4c8b9cf0ada9f93299e898e325b2069304089ac8.
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index be1bef3c..0eb1e1df 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1038,8 +1038,8 @@ void MainWindow::on_usersButton_clicked() selected_users = listKeys(recipients); } foreach (const UserInfo &sel, selected_users) { - for (UserInfo &user : users) { - if (sel.key_id == user.key_id) user.enabled = true; + for (QList<UserInfo>::iterator it = users.begin(); it != users.end(); ++it) { + if (sel.key_id == it->key_id) it->enabled = true; } } if (count > selected_users.size()) |