commit | 5b4a5169e365fe0b85b78caa186fdf671b4972ec | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Tue Dec 23 17:36:28 2014 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Tue Dec 23 17:36:28 2014 +0300 |
tree | da47f6516921d21f612d8ca510b1e1c07f99d268 | |
parent | eaddfd87688bb43e61ceab7ac6fa8761a6563777 [diff] [blame] |
Move variable declaration closer to where it's needed
diff --git a/tinyxml2.h b/tinyxml2.h index 35da4d9..b88e2d0 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -562,10 +562,10 @@ } inline static bool StringEqual( const char* p, const char* q, int nChar=INT_MAX ) { - int n = 0; if ( p == q ) { return true; } + int n = 0; while( *p && *q && *p == *q && n<nChar ) { ++p; ++q;