use enum instead of string in more places

svn path=/branches/xmlbuildsystem/; revision=12902
This commit is contained in:
Royce Mitchell III
2005-01-09 03:43:26 +00:00
parent 03e6c98e63
commit d16f78506a
7 changed files with 19 additions and 26 deletions

View File

@@ -38,9 +38,7 @@ Module::Module ( const Project& project,
att = moduleNode.GetAttribute ( "type", true );
assert(att);
stype = att->value;
strlwr ( &stype[0] );
etype = GetModuleType ( node.location, *att );
type = GetModuleType ( node.location, *att );
att = moduleNode.GetAttribute ( "extension", false );
if (att != NULL)
@@ -154,7 +152,7 @@ Module::GetModuleType ( const string& location, const XMLAttribute& attribute )
string
Module::GetDefaultModuleExtension () const
{
switch (etype)
switch (type)
{
case BuildTool:
return EXEPOSTFIX;