[X2Go-Commits] [x2goclient] 60/87: x2goutils.cpp: actually use the correct iterator types and functions.

git-admin at x2go.org git-admin at x2go.org
Wed Mar 4 22:14:49 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 ec4c29273e144e76e454a22aa19804f750ddb4f9
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sat Feb 14 23:45:32 2015 +0100

    x2goutils.cpp: actually use the correct iterator types and functions.
---
 src/x2goutils.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/x2goutils.cpp b/src/x2goutils.cpp
index 36ffac9..d1ad13d 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.constBegin ();
-    while (it != legacy_locations.constEnd ()) {
+    std::vector<QString>::const_iterator it = legacy_locations.begin ();
+    while (it != legacy_locations.end ()) {
       if (res_path.startsWith (*(it++))) {
         detected = true;
         break;

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


More information about the x2go-commits mailing list