[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kolourpaint/pixmapfx
From:       Dirk Mueller <mueller () kde ! org>
Date:       2007-10-05 0:59:43
Message-ID: 1191545983.052242.26094.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 721328 by mueller:

variadic macros are not portable nor part of ISO C++


 M  +4 -9      kpPixmapFX_MaskOps.cpp  


--- trunk/KDE/kdegraphics/kolourpaint/pixmapfx/kpPixmapFX_MaskOps.cpp #721327:721328
@@ -63,14 +63,10 @@
 
 
 #if DEBUG_KP_PIXMAP_FX
-#ifdef Q_CC_MSVC
-    #define KP_PRINTF
+    #define KP_PRINTF if (1) printf
 #else
-    #define KP_PRINTF(x...) fprintf (stderr, x)
+    #define KP_PRINTF if (0) (void)
 #endif
-#else
-    #define KP_PRINTF(x...)
-#endif
 
 
 #ifdef Q_WS_X11
@@ -86,7 +82,7 @@
 // the parent.  The child is then killed.
 static int QPixmapCalculateDefaultDepthWithoutQApplication ()
 {
-    KP_PRINTF ("QPixmapCalculateDefaultDepthWithoutQApplication()\n");
+    KP_PRINTF (("QPixmapCalculateDefaultDepthWithoutQApplication()\n"));
 
     // [0] = read
     // [1] = write
@@ -119,9 +115,8 @@
         KApplication app;
 
         const int depth = QPixmap::defaultDepth ();
-        KP_PRINTF ("Child: writing default depth %d\n", depth);
         write (fds [Write], &depth, sizeof (depth));
-        KP_PRINTF ("Child: wrote default depth\n");
+        KP_PRINTF (("Child: wrote default depth\n"));
 
         close (fds [Write]);
         KP_PRINTF ("Child: exit\n");
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic