X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eda6fa912b538ead8c5aa6e06d25e0d0109a264f..ac7f7b51da8ce61a373a698856d1dad19ca9395e:/utils/HelpGen/src/srcparser.cpp diff --git a/utils/HelpGen/src/srcparser.cpp b/utils/HelpGen/src/srcparser.cpp index 9895113751..f98154c822 100644 --- a/utils/HelpGen/src/srcparser.cpp +++ b/utils/HelpGen/src/srcparser.cpp @@ -533,7 +533,7 @@ spFile* SourceParserBase::ParseFile( const char* fname ) FILE* fp = fopen( fname, "rt" ); - if ( (int)fp == -1 || !fp ) return NULL; + if ( !fp ) return NULL; int sz = fread( mpFileBuf, 1, mFileBufSz, fp ); @@ -587,7 +587,7 @@ void spAttribute::DumpThis(const wxString& indent) const void spOperation::DumpThis(const wxString& indent) const { wxString protection; - if ( !!mScope ) { + if ( !mScope.empty() ) { switch ( mVisibility ) { case SP_VIS_PUBLIC: protection = "public";