From 3ea396c8d22d995f63e88b24ea85a881b6139280 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 8 May 2011 14:54:29 +0200 Subject: Some cppcheck cleaning --- autodoc/source/ary/idl/ia_type.cxx | 2 +- autodoc/source/display/idl/hfi_doc.cxx | 2 +- autodoc/source/display/idl/hfi_typetext.cxx | 2 +- autodoc/source/exes/adc_uni/adc_cmd_parse.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'autodoc') diff --git a/autodoc/source/ary/idl/ia_type.cxx b/autodoc/source/ary/idl/ia_type.cxx index 4f4b26062bc3..c029c8e1e877 100644 --- a/autodoc/source/ary/idl/ia_type.cxx +++ b/autodoc/source/ary/idl/ia_type.cxx @@ -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( diff --git a/autodoc/source/display/idl/hfi_doc.cxx b/autodoc/source/display/idl/hfi_doc.cxx index c379021a845e..e5a7b3661489 100644 --- a/autodoc/source/display/idl/hfi_doc.cxx +++ b/autodoc/source/display/idl/hfi_doc.cxx @@ -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); diff --git a/autodoc/source/display/idl/hfi_typetext.cxx b/autodoc/source/display/idl/hfi_typetext.cxx index 458f5d12ae02..574de30374d2 100644 --- a/autodoc/source/display/idl/hfi_typetext.cxx +++ b/autodoc/source/display/idl/hfi_typetext.cxx @@ -740,7 +740,7 @@ void HF_IdlTypeText::write_TemplateParameterList( const std::vector & i_templateParameters ) const { - if (i_templateParameters.size() == 0) + if (i_templateParameters.empty()) return; HF_IdlTypeText diff --git a/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx b/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx index 88861f87ca2d..8bdf6b01df1b 100644 --- a/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx +++ b/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx @@ -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." ); } -- cgit