mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 20:13:04 +00:00
fixed some warnings, and added some asserts
svn path=/branches/xmlbuildsystem/; revision=12843
This commit is contained in:
parent
7d876c4d0c
commit
c6916243d1
4 changed files with 30 additions and 22 deletions
|
@ -1,6 +1,7 @@
|
|||
// module.cpp
|
||||
|
||||
#include "pch.h"
|
||||
#include <assert.h>
|
||||
|
||||
#include "rbuild.h"
|
||||
|
||||
|
@ -19,9 +20,10 @@ Module::Module ( const XMLElement& moduleNode,
|
|||
|
||||
Module::~Module ()
|
||||
{
|
||||
for ( size_t i = 0; i < files.size(); i++ )
|
||||
size_t i;
|
||||
for ( i = 0; i < files.size(); i++ )
|
||||
delete files[i];
|
||||
for ( size_t i = 0; i < libraries.size(); i++ )
|
||||
for ( i = 0; i < libraries.size(); i++ )
|
||||
delete libraries[i];
|
||||
}
|
||||
|
||||
|
@ -40,6 +42,7 @@ void Module::ProcessXML ( const XMLElement& e,
|
|||
else if ( e.name == "directory" )
|
||||
{
|
||||
const XMLAttribute* att = e.GetAttribute ( "name", true );
|
||||
assert(att);
|
||||
subpath = path + "/" + att->value;
|
||||
}
|
||||
for ( size_t i = 0; i < e.subElements.size (); i++ )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue