|
Subject: playground/utils/kdbus/src Newsgroups: gmane.comp.kde.cvs Date: 2008-01-11 12:23:55 GMT (39 weeks, 18 hours and 15 minutes ago)
SVN commit 759894 by dkukawka:
fixed inArgs() and outArgs() to show for DBus methodes in the
'Output:' section only the output related parameter and not
also the input parameter a second time (as in the 'Input:')
section
M +4 -0 dbusmethod.cpp
--- trunk/playground/utils/kdbus/src/dbusmethod.cpp #759893:759894
@@ -55,6 +55,8 @@
QPtrList< DBusMethodArgument > DBusMethod::inArgs() const {
QPtrList< DBusMethodArgument > inArgs = m_args;
+ // be sure we have the first element in the list
+ inArgs.first();
while ( 0 != inArgs.current() ) {
if ( inArgs.current()->direction() != "in" )
inArgs.take();
@@ -67,6 +69,8 @@
QPtrList< DBusMethodArgument > DBusMethod::outArgs() const {
QPtrList< DBusMethodArgument > outArgs = m_args;
+ // be sure we have the first element in the list
+ outArgs.first();
while ( 0 != outArgs.current() ) {
if ( outArgs.current()->direction() != "out" )
outArgs.take();
|
|
|