From 47b620e9fe0fe93bf141264b7260e577db89d085 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Tue, 2 Jun 2009 15:32:45 +0200
Subject: [PATCH] Oops! use the right overload of QString::indexOf :-)

---
 src/plugins/cpptools/cpptoolsplugin.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp
index 0f9ab461d53..3a78f4d8479 100644
--- a/src/plugins/cpptools/cpptoolsplugin.cpp
+++ b/src/plugins/cpptools/cpptoolsplugin.cpp
@@ -178,7 +178,7 @@ protected:
             const QString className = QString::fromUtf8(_source.constData() + start.begin(),
                                                         end.end() - start.begin());
 
-            int idx = className.indexOf(_text, cs);
+            int idx = className.indexOf(_text, 0, cs);
             if (idx != -1) {
                 const char *beg = _source.constData();
                 const char *cp = beg + start.offset;
-- 
GitLab