فهرست منبع

Fix up xmltest.cpp

Fixed coding style in XMLTest(), and removed unused variable in testcase.
Sarat Addepalli 10 سال پیش
والد
کامیت
d608c561e0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      xmltest.cpp

+ 2 - 2
xmltest.cpp

@@ -35,7 +35,8 @@ bool XMLTest (const char* testString, const char* expected, const char* found, b
 		pass = true;
 	else if ( !expected || !found )
 		pass = false;
-	else pass = !strcmp( expected, found );
+	else 
+		pass = !strcmp( expected, found );
 	if ( pass )
 		printf ("[pass]");
 	else
@@ -1472,7 +1473,6 @@ int main( int argc, const char ** argv )
                                        "<first />"
                                        "<second />";
                 XMLDocument* doc = new XMLDocument();
-                const char* value;
                 XMLTest( "XMLDocument::Value() fires assert?", NULL, doc->Value() );
                 doc->Parse( validXml );
                 XMLTest( "XMLDocument::Value() fires assert?", NULL, doc->Value() );