[ros-diffs] [mpiulachs] 30077: Make "lastname" and "alias" attributes optional . No sure about last one but lets make it non-mandatory for now

mpiulachs at svn.reactos.org mpiulachs at svn.reactos.org
Fri Nov 2 23:23:33 CET 2007


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/module.cpp?rev=30077&r1=30076&r2=30077&view=diff
==============================================================================
--- 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




More information about the Ros-diffs mailing list