[Libreoffice-commits] core.git: xmloff/source

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Tue Jul 25 12:58:20 UTC 2017


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

New commits:
commit 5f29fb1e9cd4e2432bcdf4deb4d433e5272a2ad4
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue Jul 25 12:23:57 2017 +0200

    Use isEmpty instead of getLength
    
    Change-Id: Ic0f325bcb28f199b3456dabcd861e40fab17569c
    Reviewed-on: https://gerrit.libreoffice.org/40397
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 720ac814a24a..fc08ff2238d6 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -3088,7 +3088,7 @@ void XMLTextParagraphExport::_exportTextGraphic(
         const OUString sReplacementURL(GetExport().AddEmbeddedGraphicObject( sReplacementOrigURL ));
 
         // If there is no url, then graphic is empty
-        if(sReplacementURL.getLength())
+        if(!sReplacementURL.isEmpty())
         {
             GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_HREF, sReplacementURL);
             GetExport().AddAttribute(XML_NAMESPACE_XLINK, XML_TYPE, XML_SIMPLE);


More information about the Libreoffice-commits mailing list