xmloff/source/draw/shapeexport.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3c7b177978f260b84f49032034502a12be7bdebc
Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
Date:   Thu Nov 30 12:47:40 2017 +0100

    Use isEmpty() instead of getLength()
    
    Change-Id: I2b67c3eebea09d8bebe045ca98341e3347b08fc7
    Reviewed-on: https://gerrit.libreoffice.org/45569
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@cib.de>

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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to