make rbuild compile with gcc4
Modified: trunk/reactos/tools/rbuild/backend/backend.cpp
Modified: trunk/reactos/tools/rbuild/backend/backend.h
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.h
_____
Modified: trunk/reactos/tools/rbuild/backend/backend.cpp
--- trunk/reactos/tools/rbuild/backend/backend.cpp 2005-05-28
22:18:44 UTC (rev 15633)
+++ trunk/reactos/tools/rbuild/backend/backend.cpp 2005-05-28
22:22:25 UTC (rev 15634)
@@ -57,3 +57,9 @@
configuration ( configuration )
{
}
+
+Backend::~Backend()
+{
+ delete &ProjectNode;
+ delete &configuration;
+}
_____
Modified: trunk/reactos/tools/rbuild/backend/backend.h
--- trunk/reactos/tools/rbuild/backend/backend.h 2005-05-28
22:18:44 UTC (rev 15633)
+++ trunk/reactos/tools/rbuild/backend/backend.h 2005-05-28
22:22:25 UTC (rev 15634)
@@ -35,6 +35,8 @@
Configuration& configuration );
public:
+ virtual ~Backend();
+
virtual void Process () = 0;
Project& ProjectNode;
Configuration& configuration;
_____
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
--- trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp 2005-05-28
22:18:44 UTC (rev 15633)
+++ trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp 2005-05-28
22:22:25 UTC (rev 15634)
@@ -603,8 +603,7 @@
else
{
fprintf ( fMakefile,
- " \\\n",
- xmlbuildFilenames.c_str () );
+ " \\\n" );
}
xmlbuildFilenames.resize ( 0 );
}
_____
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.h
--- trunk/reactos/tools/rbuild/backend/mingw/mingw.h 2005-05-28
22:18:44 UTC (rev 15633)
+++ trunk/reactos/tools/rbuild/backend/mingw/mingw.h 2005-05-28
22:22:25 UTC (rev 15634)
@@ -47,7 +47,7 @@
public:
MingwBackend ( Project& project,
Configuration& configuration );
- virtual ~MingwBackend ();
+ ~MingwBackend ();
virtual void Process ();
std::string AddDirectoryTarget ( const std::string& directory,
Directory* directoryTree );
Show replies by date