Kaydet (Commit) 3ea396c8 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

üst 3b8b6cef
......@@ -127,7 +127,7 @@ TypeAdmin::lhf_CheckIn_TypeName( const String & i_sLocalName,
{
String sSearchLocalName( i_sLocalName );
if ( i_templateParameters != 0
? i_templateParameters->size() > 0
? (!i_templateParameters->empty())
: false )
{
sSearchLocalName = MakeTemplateName(
......
......@@ -165,7 +165,7 @@ HF_IdlDocu::Produce_byDocuAndScope( const ce_info & i_rDocu,
}
} // end for
if (aSeeAlsosWithoutText.size() > 0)
if (!aSeeAlsosWithoutText.empty())
{
HF_IdlTag
aSeeAlsoTag(Env(), i_rScopeGivingCe);
......
......@@ -740,7 +740,7 @@ void
HF_IdlTypeText::write_TemplateParameterList(
const std::vector<ary::idl::Type_id> & i_templateParameters ) const
{
if (i_templateParameters.size() == 0)
if (i_templateParameters.empty())
return;
HF_IdlTypeText
......
......@@ -220,7 +220,7 @@ void
Parse::do_clDefaultProject( opt_iter & it,
opt_iter itEnd )
{
if ( aProjects.size() > 0 )
if ( !aProjects.empty() )
{
throw X_CommandLine( "Both, named projects and a default project, cannot be used together." );
}
......
......@@ -267,7 +267,6 @@ char* createCommandName( char* argv0 )
#ifndef AIX
Dl_info dl_info;
#endif
int pos;
/* get the executable file name from argv0 */
prgname = argv0;
......@@ -293,7 +292,7 @@ char* createCommandName( char* argv0 )
sep = strrchr( prgname, SEPARATOR );
if ( sep != NULL )
{
pos = ++sep - prgname;
int pos = ++sep - prgname;
strncpy( cmdname, prgname, pos );
cmdname[ pos ] = '\0';
strcat( cmdname, CMDPREFIX );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment