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

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;