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

List:       kde-commits
Subject:    branches/work/dbus-qt4-qt3backport/tools/dbusxml2qt3
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2007-01-31 23:03:51
Message-ID: 1170284631.874202.15749.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 628924 by krake:

Always generate handleMethodCall even when no normal methods are in the interface \
since not generating it means the object cannot be instantiiated because it contains \
a pure virtual


 M  +5 -0      classgen.cpp  


--- branches/work/dbus-qt4-qt3backport/tools/dbusxml2qt3/classgen.cpp #628923:628924
@@ -359,6 +359,11 @@
                 stream << "protected: // usually no need to reimplement" << endl;
                 stream << "    virtual bool handleMethodCall(const QDBusMessage& \
message);" << endl;  }
+            else
+            {
+                stream << "protected: // no methods to handle" << endl;
+                stream << "    virtual bool handleMethodCall(const QDBusMessage&) { \
return false; }" << endl; +            }
             break;
 
         case Class::Proxy:


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

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