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/
This commit is contained in:
Roland Winklmeier
2015-05-23 17:54:39 +02:00
parent 4ed0b6a54f
commit 009a6f53be

View File

@@ -24,7 +24,7 @@ namespace BlackGui
void CCommandInput::validateCommand()
{
QString commandLine = text();
setText(QStringLiteral(""));
setText(QString());
if (commandLine.startsWith('.'))
{