summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlnumfe.cxx
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-18 19:53:19 +0200
committerNoel Power <noel.power@suse.com>2013-06-19 10:10:39 +0000
commitad09b2f7efac628ac4261b86f9fd085f83ebe717 (patch)
tree788329ea0baed2a1a1bf8b21bb56122aa1f292b1 /xmloff/source/style/xmlnumfe.cxx
parent2e963d0510aacf2d5e59a7604c106bae7a928921 (diff)
fdo#43460 xmloff: use isEmpty()
Change-Id: I298767cc0ec03c22d3ae687939f0f9d5ce1963c1 Reviewed-on: https://gerrit.libreoffice.org/4348 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'xmloff/source/style/xmlnumfe.cxx')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 8e0b23b6c8d6..a71042f9b603 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -372,7 +372,7 @@ void SvXMLNumFmtExport::AddToTextElement_Impl( const OUString& rString )
void SvXMLNumFmtExport::FinishTextElement_Impl()
{
- if ( sTextContent.getLength() )
+ if ( !sTextContent.isEmpty() )
{
SvXMLElementExport aElem( rExport, XML_NAMESPACE_NUMBER, XML_TEXT,
sal_True, sal_False );
@@ -1603,7 +1603,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
}
}
- if ( sTextContent.getLength() )
+ if ( !sTextContent.isEmpty() )
bAnyContent = sal_True; // element written in FinishTextElement_Impl
FinishTextElement_Impl(); // final text element - before maps