mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
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:
@@ -24,7 +24,7 @@ namespace BlackGui
|
|||||||
void CCommandInput::validateCommand()
|
void CCommandInput::validateCommand()
|
||||||
{
|
{
|
||||||
QString commandLine = text();
|
QString commandLine = text();
|
||||||
setText(QStringLiteral(""));
|
setText(QString());
|
||||||
|
|
||||||
if (commandLine.startsWith('.'))
|
if (commandLine.startsWith('.'))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user