From 57f22e976438297d06ef50cbc4727f90394ac7fc Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 14 Jan 2017 10:51:14 +0100 Subject: [PATCH] removed costly size() call in QList --- retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.cpp b/retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.cpp index 045495bd7..1a3cf5f57 100644 --- a/retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.cpp +++ b/retroshare-gui/src/gui/gxsforums/GxsForumsFillThread.cpp @@ -193,8 +193,10 @@ void GxsForumsFillThread::run() } /* process messages */ - while (msgs.size()) { - while (threadList.size() > 0) { + while (msgs.size()) + { + while (!threadList.empty()) + { if (wasStopped()) { break; }