Author: mpiulachs
Date: Sat Nov 3 01:23:33 2007
New Revision: 30077
URL:
http://svn.reactos.org/svn/reactos?rev=30077&view=rev
Log:
Make "lastname" and "alias" attributes optional . No sure about last
one but lets make it non-mandatory for now
Modified:
branches/rbuild/reactos/tools/rbuild/module.cpp
Modified: branches/rbuild/reactos/tools/rbuild/module.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/rbuild/reactos/tools/rbuild/mod…
==============================================================================
--- branches/rbuild/reactos/tools/rbuild/module.cpp (original)
+++ branches/rbuild/reactos/tools/rbuild/module.cpp Sat Nov 3 01:23:33 2007
@@ -1709,9 +1709,11 @@
void
Contributor::ProcessXML()
{
- const XMLAttribute* att = node.GetAttribute ( "alias", true );
- assert(att);
- alias = att->value;
+ const XMLAttribute* att = node.GetAttribute ( "alias", false );
+ if (att != NULL)
+ alias = att->value;
+ else
+ alias = "";
att = node.GetAttribute ( "firstname", true );
if (att != NULL)
@@ -1719,7 +1721,7 @@
else
firstName = "";
- att = node.GetAttribute ( "lastname", true );
+ att = node.GetAttribute ( "lastname", false );
if (att != NULL)
lastName = att->value;
else