[X2Go-Commits] [x2goclient] 05/08: x2goutils.cpp: use constBegin() and constEnd() instead of begin/end...

git-admin at x2go.org git-admin at x2go.org
Sun Feb 15 00:00:01 CET 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/cleanup
in repository x2goclient.

commit a8a376f47b6bb0365de0933c246bc29ccef51607
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Feb 14 23:28:35 2015 +0100

    x2goutils.cpp: use constBegin() and constEnd() instead of begin/end...
---
 src/x2goutils.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/x2goutils.cpp b/src/x2goutils.cpp
index 8ddad3b..36ffac9 100644
--- a/src/x2goutils.cpp
+++ b/src/x2goutils.cpp
@@ -42,8 +42,8 @@ QString wrap_legacy_resources (const QString res_path) {
     bool detected = false;
 
     /* This would be so much easier with C++ and lambdas... */
-    QString::const_iterator it = legacy_locations.begin ();
-    while (it != legacy_locations.end ()) {
+    QString::const_iterator it = legacy_locations.constBegin ();
+    while (it != legacy_locations.constEnd ()) {
       if (res_path.startsWith (*(it++))) {
         detected = true;
         break;

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git


More information about the x2go-commits mailing list