From d608c561e04fa58afaca7744b39e28c726a5f2f2 Mon Sep 17 00:00:00 2001 From: Sarat Addepalli Date: Wed, 20 May 2015 10:19:00 +0530 Subject: [PATCH] Fix up xmltest.cpp Fixed coding style in XMLTest(), and removed unused variable in testcase. --- xmltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmltest.cpp b/xmltest.cpp index edd2e70..05d6bb9 100644 --- a/xmltest.cpp +++ b/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 ) "" ""; 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() );