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

This commit is contained in:
Roberto Raggi
2009-06-02 15:32:45 +02:00
parent e8ba82f1f4
commit 47b620e9fe

View File

@@ -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;