use enum instead of string in more places
[reactos.git] / reactos / tools / rbuild / module.cpp
index e8ea879..a569cdc 100644 (file)
@@ -38,9 +38,7 @@ Module::Module ( const Project& project,
 \r
        att = moduleNode.GetAttribute ( "type", true );\r
        assert(att);\r
-       stype = att->value;\r
-       strlwr ( &stype[0] );\r
-       etype = GetModuleType ( node.location, *att );\r
+       type = GetModuleType ( node.location, *att );\r
 \r
        att = moduleNode.GetAttribute ( "extension", false );\r
        if (att != NULL)\r
@@ -154,7 +152,7 @@ Module::GetModuleType ( const string& location, const XMLAttribute& attribute )
 string\r
 Module::GetDefaultModuleExtension () const\r
 {\r
-       switch (etype)\r
+       switch (type)\r
        {\r
                case BuildTool:\r
                        return EXEPOSTFIX;\r