[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-08-28 16:43:33
[Download RAW message or body]

CVS commit by lypanov: 

no 0 sized arrays


  M +10 -6     skel.cpp   1.29


--- kdelibs/dcop/dcopidl2cpp/skel.cpp  #1.28:1.29
@@ -200,4 +200,5 @@ void generateSkel( const QString& idl, c
         str << "};" << endl;
 
+        if (functions.count() > 0) {
         str << "static const int " << className << "_ftable_hiddens[" << \
                functions.count() << "] = {" << endl;
         for( QValueList<Function>::Iterator it = functions.begin(); it != \
functions.end(); ++it ){ @@ -205,4 +206,5 @@ void generateSkel( const QString& idl, c
         }
         str << "};" << endl;
+        }
     
         str << endl;
@@ -354,6 +356,8 @@ void generateSkel( const QString& idl, c
         }
         str << "    for ( int i = 0; " << className << "_ftable[i][2]; i++ ) {" << \
endl; +        if (functions.count() > 0) {
         str << "\tif (" << className << "_ftable_hiddens[i])" << endl;
         str << "\t    continue;" << endl;
+        }
         str << "\tQCString func = " << className << "_ftable[i][0];" << endl;
         str << "\tfunc += ' ';" << endl;


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

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