From 009a6f53be23709425f1d03a13445c49251d8d2f Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Sat, 23 May 2015 17:54:39 +0200 Subject: [PATCH] Do not use QStringLiteral for empty strings The default constructor for QString is cheaper in terms of both instructions and memory. https://blog.qt.io/blog/2014/06/13/qt-weekly-13-qstringliteral/ --- src/blackgui/commandinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackgui/commandinput.cpp b/src/blackgui/commandinput.cpp index d7ab36a4d..e9425b8a5 100644 --- a/src/blackgui/commandinput.cpp +++ b/src/blackgui/commandinput.cpp @@ -24,7 +24,7 @@ namespace BlackGui void CCommandInput::validateCommand() { QString commandLine = text(); - setText(QStringLiteral("")); + setText(QString()); if (commandLine.startsWith('.')) {