[Pkg-owncloud-commits] [owncloud-client] 56/484: SocketAPI: String concat optimization as learned on QtWS.

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 74a7755ad93f6ba7a7b3f415786a7858bc84e8b3
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Thu Oct 8 18:26:30 2015 +0200

    SocketAPI: String concat optimization as learned on QtWS.
---
 src/gui/socketapi.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp
index a605366..152de1a 100644
--- 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);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list