From kde-commits Wed Jan 31 23:03:51 2007 From: Kevin Krammer Date: Wed, 31 Jan 2007 23:03:51 +0000 To: kde-commits Subject: branches/work/dbus-qt4-qt3backport/tools/dbusxml2qt3 Message-Id: <1170284631.874202.15749.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117028473429361 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: