diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 0f9ab461d53a4276f7eb9f69e4a75b338e796689..3a78f4d847937f4953c9c993db78866e99658f41 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;