summaryrefslogtreecommitdiff
path: root/autodoc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-05-08 14:54:29 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-05-08 14:54:29 +0200
commit3ea396c8d22d995f63e88b24ea85a881b6139280 (patch)
tree12f106178de0b3a6e65fd05f4786fe577f148728 /autodoc
parent3b8b6cef107bdf209e6258c5bb4d51e880f6ecf6 (diff)
Some cppcheck cleaning
Diffstat (limited to 'autodoc')
-rw-r--r--autodoc/source/ary/idl/ia_type.cxx2
-rw-r--r--autodoc/source/display/idl/hfi_doc.cxx2
-rw-r--r--autodoc/source/display/idl/hfi_typetext.cxx2
-rw-r--r--autodoc/source/exes/adc_uni/adc_cmd_parse.cxx2
4 files changed, 4 insertions, 4 deletions
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<ary::idl::Type_id> & 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." );
}