[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r2125: Log QStringLists as comma-separated values. (in trunk: . src/util)



Author: edmanm
Date: 2007-11-21 20:51:16 -0500 (Wed, 21 Nov 2007)
New Revision: 2125

Modified:
   trunk/
   trunk/src/util/log.h
Log:
 r2137@lysithea:  edmanm | 2007-11-21 20:27:02 -0500
 Log QStringLists as comma-separated values.



Property changes on: trunk
___________________________________________________________________
 svk:merge ticket from /local/vidalia/trunk [r2137] on 0108964c-5b0b-4c9e-969f-e2288315d100

Modified: trunk/src/util/log.h
===================================================================
--- trunk/src/util/log.h	2007-11-21 23:49:21 UTC (rev 2124)
+++ trunk/src/util/log.h	2007-11-22 01:51:16 UTC (rev 2125)
@@ -122,6 +122,10 @@
     { stream->buf += t; return *this; }
   inline LogMessage arg(const QString &a)
     { stream->buf = stream->buf.arg(a); return *this; }
+  inline LogMessage &operator<<(const QStringList &a)
+    { stream->buf += a.join(","); return *this; }
+  inline LogMessage arg(const QStringList &a)
+    { stream->buf = stream->buf.arg(a.join(",")); return *this; }
   inline LogMessage &operator<<(const QHostAddress &a)
     { stream->buf += a.toString(); return *this; }
   inline LogMessage arg(const QHostAddress &a)