diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-07-25 12:23:57 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-07-25 14:57:36 +0200 |
commit | 5f29fb1e9cd4e2432bcdf4deb4d433e5272a2ad4 (patch) | |
tree | c87991725be8b2d509ac5d67a18a226499835048 /xmloff | |
parent | 3447c35add74ef950ba76943669d3311638957a1 (diff) |
Use isEmpty instead of getLength
Change-Id: Ic0f325bcb28f199b3456dabcd861e40fab17569c
Reviewed-on: https://gerrit.libreoffice.org/40397
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |