commit c681be566525dc3ab37f514e1a05619609ae2ec6 Author: Amilcar do Carmo Lucas Date: Tue Jun 2 22:21:00 2009 +0000 Krazy fix Check single-char QString operations for efficiency http://www.englishbreakfastnetwork.org/krazy/reports/kde-4.x/kdevplatform/plugins/index.html diff --git a/gitplugin.cpp b/gitplugin.cpp index 03e40c1..dd9cc68 100644 --- a/gitplugin.cpp +++ b/gitplugin.cpp @@ -284,7 +284,7 @@ void GitPlugin::parseGitBlameOutput(DVcsJob *job) { QList results; int lineNumber = 0; QRegExp regex("(\\w{8}) \\((.*) (\\d+) [-+]\\d+\\s+\\d+\\)"); - foreach(QString line, job->output().split("\n")) { + foreach(QString line, job->output().split('\n')) { if (regex.indexIn(line) == 0) { VcsAnnotationLine annotation; annotation.setAuthor(regex.cap(2));