summaryrefslogtreecommitdiff
path: root/xmloff
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 /xmloff
parent704c9477039e37b4910db6aa8dd644751dd5e6a5 (diff)
Get rid of size() == 0
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlnumfi.cxx4
-rw-r--r--xmloff/source/text/txtparae.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index 3a964a34aef2..5483632252af 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -1579,7 +1579,7 @@ sal_Int32 SvXMLNumFormatContext::CreateAndInsert(SvNumberFormatter* pFormatter)
// and no color definition (detected by the '[' at the start)
if ( nType == XML_TOK_STYLES_NUMBER_STYLE && !bHasExtraText &&
- aMyConditions.size() == 0 && sFormat.toChar() != (sal_Unicode)'[' )
+ aMyConditions.empty() && sFormat.toChar() != (sal_Unicode)'[' )
nIndex = pFormatter->GetStandardIndex( nFormatLang );
}
if ( bAutoInt ) // automatic integer digits
@@ -1587,7 +1587,7 @@ sal_Int32 SvXMLNumFormatContext::CreateAndInsert(SvNumberFormatter* pFormatter)
//! only if two decimal places was set?
if ( nType == XML_TOK_STYLES_NUMBER_STYLE && !bHasExtraText &&
- aMyConditions.size() == 0 && sFormat.toChar() != (sal_Unicode)'[' )
+ aMyConditions.empty() && sFormat.toChar() != (sal_Unicode)'[' )
nIndex = pFormatter->GetFormatIndex( NF_NUMBER_SYSTEM, nFormatLang );
}
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 3cd935a1cd7a..029fd97be203 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -1337,7 +1337,7 @@ XMLTextParagraphExport::~XMLTextParagraphExport()
txtparae_bContainsIllegalCharacters = sal_False;
#endif
PopTextListsHelper();
- DBG_ASSERT( maTextListsHelperStack.size() == 0,
+ DBG_ASSERT( maTextListsHelperStack.empty(),
"misusage of text lists helper stack - it is not empty. Serious defect - please inform OD" );
}