Cleanups and fixes (RIPD-532):

* Properly handle sfWalletLocator field
* Plug a tiny memory leak
* Avoid naked pointers
* Remove unused variables
* Other small cleanups
This commit is contained in:
Nik Bougalis
2014-08-31 00:07:02 -07:00
parent 22ca13bc78
commit 56c18f7768
21 changed files with 54 additions and 58 deletions

View File

@@ -643,8 +643,8 @@ Reader::readArray ( Token& tokenStart )
ok = readToken ( token );
}
bool badTokenType = ( token.type_ == tokenArraySeparator &&
token.type_ == tokenArrayEnd );
bool badTokenType = ( token.type_ != tokenArraySeparator &&
token.type_ != tokenArrayEnd );
if ( !ok || badTokenType )
{