From d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 Mon Sep 17 00:00:00 2001 From: Elton Chung Date: Sun, 19 Feb 2012 16:59:40 +0400 Subject: Get rid of size() == 0 --- autodoc/inc/ary/info/ci_text.hxx | 2 +- autodoc/source/display/idl/hfi_module.cxx | 2 +- autodoc/source/display/idl/hfi_xrefpage.cxx | 2 +- autodoc/source/display/idl/hi_factory.cxx | 2 +- autodoc/source/exes/adc_uni/adc_cl.cxx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'autodoc') diff --git a/autodoc/inc/ary/info/ci_text.hxx b/autodoc/inc/ary/info/ci_text.hxx index 4e8bf7a99073..a178ff77de19 100644 --- a/autodoc/inc/ary/info/ci_text.hxx +++ b/autodoc/inc/ary/info/ci_text.hxx @@ -62,7 +62,7 @@ class DocuText { aTokens.push_back(&let_drToken); } const TokenList & Tokens() const { return aTokens; } bool IsNoHtml() const { return NOT bUsesHtml; } - bool IsEmpty() const { return aTokens.size() == 0; } + bool IsEmpty() const { return aTokens.empty(); } private: TokenList aTokens; diff --git a/autodoc/source/display/idl/hfi_module.cxx b/autodoc/source/display/idl/hfi_module.cxx index eb65a14de9ae..85be9cb9fb37 100644 --- a/autodoc/source/display/idl/hfi_module.cxx +++ b/autodoc/source/display/idl/hfi_module.cxx @@ -214,7 +214,7 @@ HF_IdlModule::produce_ChildList( const String & i_sName, const String & i_sLabel, const ce_ptr_list & i_list ) const { - if ( i_list.size() == 0 ) + if ( i_list.empty() ) return false; HF_SubTitleTable diff --git a/autodoc/source/display/idl/hfi_xrefpage.cxx b/autodoc/source/display/idl/hfi_xrefpage.cxx index e067308295ca..35d647a85ebf 100644 --- a/autodoc/source/display/idl/hfi_xrefpage.cxx +++ b/autodoc/source/display/idl/hfi_xrefpage.cxx @@ -74,7 +74,7 @@ HF_IdlXrefs::Write_ManualLinks( const client & i_ce ) const { const StringVector & rLinks2Refs = i_ce.Secondaries().Links2RefsInManual(); - if ( rLinks2Refs.size() == 0 ) + if ( rLinks2Refs.empty() ) { rContentDirectory << C_sDevMan diff --git a/autodoc/source/display/idl/hi_factory.cxx b/autodoc/source/display/idl/hi_factory.cxx index d194d6015744..832420f6fb96 100644 --- a/autodoc/source/display/idl/hi_factory.cxx +++ b/autodoc/source/display/idl/hi_factory.cxx @@ -234,7 +234,7 @@ HtmlFactory_Idl::write_ManualLinks( Xml::Element & o_screen, { const StringVector & rLinks2Descrs = i_ce.Secondaries().Links2DescriptionInManual(); - if ( rLinks2Descrs.size() == 0 ) + if ( rLinks2Descrs.empty() ) return; o_screen diff --git a/autodoc/source/exes/adc_uni/adc_cl.cxx b/autodoc/source/exes/adc_uni/adc_cl.cxx index f2cc54fb157e..4c5624fb0068 100644 --- a/autodoc/source/exes/adc_uni/adc_cl.cxx +++ b/autodoc/source/exes/adc_uni/adc_cl.cxx @@ -255,7 +255,7 @@ CommandLine::do_PrintUse() const bool CommandLine::inq_CheckParameters() const { - if (NOT bInitOk OR aCommands.size() == 0) + if (NOT bInitOk OR aCommands.empty()) return false; return true; } -- cgit