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

List:       kde-commits
Subject:    KDE/kdelibs/kdecore/kconfig_compiler
From:       Marco Gulino <marco () kmobiletools ! org>
Date:       2007-05-11 20:43:19
Message-ID: 1178916199.082879.31279.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 663626 by gulino:

Fixing compilation of classes with both namespace and d-pointer.


 M  +4 -0      kconfig_compiler.cpp  


--- trunk/KDE/kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #663625:663626
@@ -1678,6 +1678,8 @@
   // private class implementation
   if ( dpointer )
   {
+    if ( !nameSpace.isEmpty() )
+      cpp << "namespace " << nameSpace << " {" << endl;
     cpp << "class " << className << "Private" << endl;
     cpp << "{" << endl;
     cpp << "  public:" << endl;
@@ -1705,6 +1707,8 @@
     }
 
     cpp << "};" << endl << endl;
+    if ( !nameSpace.isEmpty() )
+      cpp << "}" << endl << endl;
   }
 
   // Singleton implementation
[prev in list] [next in list] [prev in thread] [next in thread] 

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