1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 15:13:01 +04:00

Move variable declaration closer to where it's needed

This commit is contained in:
Dmitry-Me
2014-12-23 17:36:28 +03:00
parent eaddfd8768
commit 5b4a5169e3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -562,10 +562,10 @@ public:
}
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;