summaryrefslogtreecommitdiff
path: root/autodoc
diff options
context:
space:
mode:
authorElton Chung <elton@layerjet.com>2012-02-19 16:59:40 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-19 17:07:46 +0400
commitd30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch)
treea99079bda02a9d8dd5bd0d54666164f362314c52 /autodoc
parent704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff)
Get rid of size() == 0
Diffstat (limited to 'autodoc')
-rw-r--r--autodoc/inc/ary/info/ci_text.hxx2
-rw-r--r--autodoc/source/display/idl/hfi_module.cxx2
-rw-r--r--autodoc/source/display/idl/hfi_xrefpage.cxx2
-rw-r--r--autodoc/source/display/idl/hi_factory.cxx2
-rw-r--r--autodoc/source/exes/adc_uni/adc_cl.cxx2
5 files changed, 5 insertions, 5 deletions
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;
}