diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-02 15:32:45 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-06-02 15:32:45 +0200 |
commit | 47b620e9fe0fe93bf141264b7260e577db89d085 (patch) | |
tree | 658f16adec0089284b00e1edb7601680ed33ab6b /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | e8ba82f1f4a8cd337c37ff60d8ef479af9f43fdc (diff) | |
download | qt-creator-47b620e9fe0fe93bf141264b7260e577db89d085.tar.gz |
Oops! use the right overload of QString::indexOf :-)
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; |