mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:05:42 +00:00
Don't test if the variable is not NULL if it is always allocated
Fix another typo svn path=/trunk/; revision=32535
This commit is contained in:
parent
b720f079e2
commit
67a14cca83
4 changed files with 7 additions and 15 deletions
|
@ -36,10 +36,8 @@ CDFile::ReplaceVariable ( const string& name,
|
|||
|
||||
CDFile::~CDFile ()
|
||||
{
|
||||
if ( source )
|
||||
delete source;
|
||||
if ( target )
|
||||
delete target;
|
||||
delete source;
|
||||
delete target;
|
||||
}
|
||||
|
||||
CDFile::CDFile ( const Project& project,
|
||||
|
|
|
@ -59,8 +59,7 @@ CompilationUnit::~CompilationUnit ()
|
|||
for ( i = 0; i < files.size (); i++ )
|
||||
delete files[i];
|
||||
|
||||
if ( default_name )
|
||||
delete default_name;
|
||||
delete default_name;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -24,11 +24,8 @@ using std::string;
|
|||
|
||||
InstallFile::~InstallFile()
|
||||
{
|
||||
if ( source )
|
||||
delete source;
|
||||
|
||||
if ( target )
|
||||
delete source;
|
||||
delete source;
|
||||
delete target;
|
||||
}
|
||||
|
||||
InstallFile::InstallFile ( const Project& project,
|
||||
|
|
|
@ -488,14 +488,13 @@ Module::~Module ()
|
|||
delete pch;
|
||||
if ( install )
|
||||
delete install;
|
||||
if ( output )
|
||||
delete output;
|
||||
if ( metadata )
|
||||
delete metadata;
|
||||
if ( bootstrap )
|
||||
delete bootstrap;
|
||||
if ( importLibrary )
|
||||
delete importLibrary;
|
||||
delete output;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1598,8 +1597,7 @@ Metadata::Metadata ( const XMLElement& _node,
|
|||
|
||||
ImportLibrary::~ImportLibrary ()
|
||||
{
|
||||
if ( source )
|
||||
delete source;
|
||||
delete source;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue