[utilities/kate] addons/git-blame: Fixed clazy warning: QString(QLatin1String) being called

Christoph Cullmann <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c48a52d1b5bd927b650b1988a1d3687b9ae08071 by Christoph Cullmann, on behalf of Leo Ruggeri.
Committed on 25/07/2026 at 11:45.
Pushed by cullmann into branch 'master'.

Fixed clazy warning: QString(QLatin1String) being called

M  +1    -2    addons/git-blame/kategitblameplugin.cpp

https://invent.kde.org/utilities/kate/-/commit/c48a52d1b5bd927b650b1988a1d3687b9ae08071

diff --git a/addons/git-blame/kategitblameplugin.cpp b/addons/git-blame/kategitblameplugin.cpp
index 31a957a4ea..93880a305e 100644
--- a/addons/git-blame/kategitblameplugin.cpp
+++ b/addons/git-blame/kategitblameplugin.cpp
@@ -431,8 +431,7 @@ void KateGitBlamePluginView::showFinished(int exitCode, QProcess::ExitStatus exi
     }
 
     // Add html link after commit hash
-    const QString prefix = QLatin1String("commit ");
-    int start = stdOut.indexOf(prefix);
+    int start = stdOut.indexOf(u"commit ");
     if (start != -1) {
         int end = stdOut.indexOf(u'\n', start);
         if (end != -1) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.