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

List:       kde-commits
Subject:    kdelibs/dcop
From:       Stephan Kulow <coolo () kde ! org>
Date:       2005-01-20 10:13:46
Message-ID: 20050120101346.4AE221CF4F () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

always init builtin types before using them (even for doing nothing). This way
gcc doesn't complain we would use an unintialized bool to check it's type name
CCMAIL: matz@suse.de


  M +1 -2      dcopref.h   1.32


--- kdelibs/dcop/dcopref.h  #1.31:1.32
@@ -54,9 +54,8 @@ public:
     operator T() {
         T t;
+        dcopTypeInit(t);
         if ( typeCheck( dcopTypeName(t), true ) ) {
             QDataStream reply( data, IO_ReadOnly );
             reply >> t;
-        } else {
-            dcopTypeInit(t);
         }
         return t;


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

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