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

List:       kde-core-devel
Subject:    patch: compiler (preprocessor) warning
From:       Dirk Mueller <mueller () kde ! org>
Date:       2001-01-29 23:14:00
[Download RAW message or body]

Hi, 

below a patch to avoid a warning with gcc 3. It still compiles with gcc 
2.95.2, however I'm not sure if this won't break other compilers. can you 
please give it a try and tell me the result?


Thanks, Dirk. 

["kdprop.patch" (text/plain)]

Index: kdcoppropertyproxy.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdecore/kdcoppropertyproxy.cpp,v
retrieving revision 1.3
diff -u -2 -d -p -b -r1.3 kdcoppropertyproxy.cpp
--- kdcoppropertyproxy.cpp	2000/07/18 16:57:19	1.3
+++ kdcoppropertyproxy.cpp	2001/01/29 23:08:37
@@ -190,5 +190,5 @@ bool KDCOPPropertyProxy::processProperty
 
 #define DEMARSHAL( type, val ) \
-  case QVariant::##type: \
+  case QVariant::type: \
     { \
       val v; \
@@ -258,5 +258,5 @@ bool KDCOPPropertyProxy::processProperty
 
 #define MARSHAL( type ) \
-  case QVariant::##type: \
+  case QVariant::type: \
     reply << prop.to##type(); \
     break;


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

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