projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ba927
)
SocketAPI: String concat optimization as learned on QtWS.
author
Klaas Freitag
<freitag@owncloud.com>
Thu, 8 Oct 2015 16:26:30 +0000
(18:26 +0200)
committer
Klaas Freitag
<freitag@owncloud.com>
Thu, 8 Oct 2015 16:26:30 +0000
(18:26 +0200)
src/gui/socketapi.cpp
patch
|
blob
|
history
diff --git
a/src/gui/socketapi.cpp
b/src/gui/socketapi.cpp
index a60536636a81096b989c4a322c8f70e17e890768..152de1a73f3933dc9eef61800cb623eb1afd5638 100644
(file)
--- a/
src/gui/socketapi.cpp
+++ b/
src/gui/socketapi.cpp
@@
-38,6
+38,7
@@
#include <QDir>
#include <QApplication>
#include <QLocalSocket>
+#include <QStringBuilder>
#include <sqlite3.h>
@@
-351,8
+352,7
@@
void SocketApi::command_RETRIEVE_FILE_STATUS(const QString& argument, QIODevice*
statusString = fileStatus.toSocketAPIString();
}
- QString message = QLatin1String("STATUS:")+statusString+QLatin1Char(':')
- +QDir::toNativeSeparators(argument);
+ const QString message = QLatin1String("STATUS:") % statusString % QLatin1Char(':') % QDir::toNativeSeparators(argument);
sendMessage(socket, message);
}