make rbuild compile with gcc4

svn path=/trunk/; revision=15634
This commit is contained in:
Thomas Bluemel 2005-05-28 22:22:25 +00:00
parent 2db9bd4682
commit 12e17e01f0
4 changed files with 10 additions and 3 deletions

View file

@ -57,3 +57,9 @@ Backend::Backend ( Project& project,
configuration ( configuration ) configuration ( configuration )
{ {
} }
Backend::~Backend()
{
delete &ProjectNode;
delete &configuration;
}

View file

@ -35,6 +35,8 @@ protected:
Configuration& configuration ); Configuration& configuration );
public: public:
virtual ~Backend();
virtual void Process () = 0; virtual void Process () = 0;
Project& ProjectNode; Project& ProjectNode;
Configuration& configuration; Configuration& configuration;

View file

@ -603,8 +603,7 @@ MingwBackend::GenerateXmlBuildFilesMacro() const
else else
{ {
fprintf ( fMakefile, fprintf ( fMakefile,
" \\\n", " \\\n" );
xmlbuildFilenames.c_str () );
} }
xmlbuildFilenames.resize ( 0 ); xmlbuildFilenames.resize ( 0 );
} }

View file

@ -47,7 +47,7 @@ class MingwBackend : public Backend
public: public:
MingwBackend ( Project& project, MingwBackend ( Project& project,
Configuration& configuration ); Configuration& configuration );
virtual ~MingwBackend (); ~MingwBackend ();
virtual void Process (); virtual void Process ();
std::string AddDirectoryTarget ( const std::string& directory, std::string AddDirectoryTarget ( const std::string& directory,
Directory* directoryTree ); Directory* directoryTree );