diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-11-30 12:47:40 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-03 10:26:46 +0100 |
commit | 95c28023f21e74c5a81fe3511b3d5be5c1f9106d (patch) | |
tree | ffd69c745473c205d4f57e770a15dd86fb099142 /xmloff | |
parent | 2d9752d343d92041deec5eaf45da48453337a014 (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>
(cherry picked from commit 3c7b177978f260b84f49032034502a12be7bdebc)
Reviewed-on: https://gerrit.libreoffice.org/45676
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/shapeexport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx index 3f7f1d54ec18..e6752066a89e 100644 --- a/xmloff/source/draw/shapeexport.cxx +++ b/xmloff/source/draw/shapeexport.cxx @@ -2375,7 +2375,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 ); |