diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-19 16:59:40 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-19 17:07:46 +0400 |
commit | d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6 (patch) | |
tree | a99079bda02a9d8dd5bd0d54666164f362314c52 /xmloff | |
parent | ST_InfoListReader and ST_InfoListWriter seem to be unused (diff) | |
download | core-d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6.tar.gz core-d30b4e9fb66f377295d8eeea8c1b1cf879aecdf6.zip |
Get rid of size() == 0
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/xmlnumfi.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 2 |
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" ); } |