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

List:       kde-commits
Subject:    kdevelop/parts/cppsupport
From:       Victor Roeder <Victor_Roeder () GMX ! de>
Date:       2003-01-08 16:57:47
[Download RAW message or body]

CVS commit by roeder: 

* Added missing ";" at the end of a class declaration (header)
* Restored my overwritten code :-)


  M +14 -6     cppnewclassdlg.cpp   1.17


--- kdevelop/parts/cppsupport/cppnewclassdlg.cpp  #1.16:1.17
@@ -302,5 +301,5 @@ void CppNewClassDialog::ClassGenerator::
                 "  $CLASSNAME$($ARGS$);\n"
                 "  ~$CLASSNAME$();\n"
-                "}\n"
+                "};\n"
                 "\n")
       + namespaceEnd
@@ -360,9 +359,18 @@ void CppNewClassDialog::ClassGenerator::
   hfile.close();
 
-  kdDebug(9007) << "Adding to project " << endl;
-  project->addFile(project->activeDirectory() + "/" + header);
-  project->addFile(project->activeDirectory() + "/" + implementation);
-  kdDebug(9007) << "Added to project " << endl;
+        QStringList fileList;
+
+        if ( project->activeDirectory() == QString::null )
+        {
+                fileList.append ( header );
+                fileList.append ( implementation );
+        }
+        else
+        {
+                fileList.append ( project->activeDirectory() + "/" + header );
+                fileList.append ( project->activeDirectory() + "/" + implementation );
+        }
 
+        project->addFiles ( fileList );
 }
 


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

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