diff options
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index 0f9ab461d5..3a78f4d847 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; |