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

List:       kde-commits
Subject:    kdelibs/dcop/dcopidl2cpp
From:       David Faure <faure () kde ! org>
Date:       2003-04-01 10:56:44
[Download RAW message or body]

CVS commit by faure: 

This const method stuff makes very little sense in stubs. They need to call
setStatus(), so they do change the DCOPStub object (unrelated to the real
application object anyway).
This fixes compilation of e.g. kdepim/kontact/plugins/korganizer/korganizeriface_stub.cpp


  M +3 -2      stub.cpp   1.14
  M +3 -2      stubimpl.cpp   1.23


--- kdelibs/dcop/dcopidl2cpp/stub.cpp  #1.13:1.14
@@ -184,6 +184,7 @@ void generateStub( const QString& idl, c
                     str << ")";
 
-                    if ( s.hasAttribute("qual") )
-                        str << " " << s.attribute("qual");
+                    // const methods stubs can't compile, they need to call setStatus().
+                    //if ( s.hasAttribute("qual") )
+                        //str << " " << s.attribute("qual");
                     str << ";" << endl;
                 }

--- kdelibs/dcop/dcopidl2cpp/stubimpl.cpp  #1.22:1.23
@@ -180,6 +180,7 @@ void generateStubImpl( const QString& id
                     str << ")";
 
-                    if ( s.hasAttribute("qual") )
-                        str << " " << s.attribute("qual");
+                    // const methods in a stub can't compile, they need to call setStatus()
+                    //if ( s.hasAttribute("qual") )
+                        //str << " " << s.attribute("qual");
                     str << endl;
                 


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

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