[Pkg-owncloud-commits] [owncloud-client] 253/333: Avoid macro when it can easily be done with a local variable

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Apr 17 23:17:00 UTC 2014


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 7f975e0b2fb171f0d938053ee2736ca7eb4c0f7a
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Fri Mar 28 09:27:05 2014 +0100

    Avoid macro when it can easily be done with a local variable
---
 src/mirall/syncrunfilelog.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/mirall/syncrunfilelog.cpp b/src/mirall/syncrunfilelog.cpp
index 9d63eca..cad6067 100644
--- a/src/mirall/syncrunfilelog.cpp
+++ b/src/mirall/syncrunfilelog.cpp
@@ -92,8 +92,6 @@ void SyncRunFileLog::start( Utility::StopWatch stopWatch )
     _start = true;
 }
 
-#define L QLatin1String("|")
-
 void SyncRunFileLog::logItem( const SyncFileItem& item )
 {
     // don't log the directory items that are in the list
@@ -110,6 +108,7 @@ void SyncRunFileLog::logItem( const SyncFileItem& item )
         _start = false;
     }
 
+    const QChar L = QLatin1Char('|');
     _out << item._responseTimeStamp << L;
     _out << QString::number(item._requestDuration) << L;
     _out << item._file << L;
@@ -128,7 +127,6 @@ void SyncRunFileLog::logItem( const SyncFileItem& item )
     _out << instructionToStr(item.other._instruction) << L;
 
     _out << endl;
-
 }
 
 void SyncRunFileLog::close()

-- 
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