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

List:       kde-commits
Subject:    kdelibs/dcop/dcopidl2cpp
From:       Alexander Kellett <lypanov () kde ! org>
Date:       2003-04-28 18:20:37
[Download RAW message or body]

CVS commit by lypanov: 

patch from Jaros?aw Staniek <js@iidea.pl>:
   init bool dcop return values to false (hit in error codepath iirc)
also added a test for it


  M +1 -0      dcopidl_test.h   1.6
  M +3 -0      stubimpl.cpp   1.27


--- kdelibs/dcop/dcopidl2cpp/dcopidl_test.h  #1.5:1.6
@@ -27,4 +27,5 @@ k_dcop:
    QString nonVoidReturnType( QString filename, QString text, QString address );
    int intReturnType( QString filename, QString text, QString address );
+   bool boolReturnType( QString filename, QString text, QString address );
 
    ASYNC asyncTest( QString filename, QString text, QString address );

--- kdelibs/dcop/dcopidl2cpp/stubimpl.cpp  #1.26:1.27
@@ -221,4 +221,7 @@ void generateStubImpl( const QString& id
                     if (isIntType( result ))
                         str << " = 0";
+                    else if ( result == "bool" )
+                        str << " = false";
+
                     str << ";" << endl;
                 }


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

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