summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-11-30 12:47:40 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-12-01 08:23:31 +0100
commit3c7b177978f260b84f49032034502a12be7bdebc (patch)
tree416037602078dc08102dba9c8ae8773b6940248f /xmloff
parent38602abc2d2b59bc3644e37797b9b1bc779fd993 (diff)
Use isEmpty() instead of getLength()
Change-Id: I2b67c3eebea09d8bebe045ca98341e3347b08fc7 Reviewed-on: https://gerrit.libreoffice.org/45569 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index 78146f1a392a..3a60df4f3b68 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -2386,7 +2386,7 @@ void XMLShapeExport::ImpExportGraphicObjectShape(
{
const OUString aStr = mrExport.AddEmbeddedGraphicObject(aReplacementUrl);
- if(aStr.getLength())
+ if(!aStr.isEmpty())
{
mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, aStr);
mrExport.AddAttribute(XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE );