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

List:       kde-commits
Subject:    kdelibs/kdecore/kconfig_compiler
From:       Luís Pedro Coelho <luis () luispedro ! org>
Date:       2004-09-16 9:15:05
Message-ID: 20040916091505.7B479126C9 () office ! kde ! org
[Download RAW message or body]

CVS commit by luis_pedro: 

Change the generated C++ from

class X {
	public:
		enum { one, two...};
};

to

class X {
	public:
		enum type { one, two ...};
};

so you can do

X::type t = X::one;

(as advertised on core-devel)


  M +1 -1      kconfig_compiler.cpp   1.54


--- kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp  #1.53:1.54
@@ -946,5 +946,5 @@ int main( int argc, char **argv )
         h << "    {" << endl;
         h << "      public:" << endl;
-        h << "      enum { " << values.join( ", " ) << ", COUNT };" << endl;
+        h << "      enum type { " << values.join( ", " ) << ", COUNT };" << endl;
         h << "    };" << endl;
       }


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

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