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

List:       kde-commits
Subject:    kdelibs/kdecore/kconfig_compiler
From:       Scott Wheeler <wheeler () kde ! org>
Date:       2004-06-26 11:29:06
Message-ID: 20040626112906.C6C43995B () office ! kde ! org
[Download RAW message or body]

CVS commit by wheeler: 

Here's another one putting COUNT in the global namespace.  Didn't notice
this before since I didn't hit an instance of this in building KDE.


  M +1 -1      kconfig_compiler.cpp   1.52


--- kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp  #1.51:1.52
@@ -943,5 +943,5 @@ int main( int argc, char **argv )
     if ( !values.isEmpty() ) {
       if ( globalEnums ) {
-        h << "    enum { " << values.join( ", " ) << ", COUNT };" << endl;
+        h << "    enum { " << values.join( ", " ) << " };" << endl;
         h << "    static const char* const " << enumName(e->param()) << \
                "ToString[];" << endl;
         cppPreamble += "const char* const " + className + "::" + \
enumName(e->param()) + "ToString[] = " +


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

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