Commit 47b620e9 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Oops! use the right overload of QString::indexOf :-)

parent e8ba82f1
...@@ -178,7 +178,7 @@ protected: ...@@ -178,7 +178,7 @@ protected:
const QString className = QString::fromUtf8(_source.constData() + start.begin(), const QString className = QString::fromUtf8(_source.constData() + start.begin(),
end.end() - start.begin()); end.end() - start.begin());
int idx = className.indexOf(_text, cs); int idx = className.indexOf(_text, 0, cs);
if (idx != -1) { if (idx != -1) {
const char *beg = _source.constData(); const char *beg = _source.constData();
const char *cp = beg + start.offset; const char *cp = beg + start.offset;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment