summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-18 20:02:13 +0200
committerNoel Power <noel.power@suse.com>2013-06-19 10:11:34 +0000
commitb5f3f55ce59b400f885c41413a3087e3406a424d (patch)
tree628d13a01c81cdc944a7c03f03cce387deece1b5 /unoxml
parentad09b2f7efac628ac4261b86f9fd085f83ebe717 (diff)
fdo#43460 unoxml,writerfilter,xmlsecurity: use isEmpty()
Change-Id: Iba3b39086212803bc41384f5c8f51e42712a5249 Reviewed-on: https://gerrit.libreoffice.org/4349 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/element.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx
index 50bb0bd27db2..87dba8a0a37c 100644
--- a/unoxml/source/dom/element.cxx
+++ b/unoxml/source/dom/element.cxx
@@ -502,7 +502,7 @@ namespace DOM
Reference< XAttr > aAttr;
if (!oldAttr->getNamespaceURI().isEmpty()) {
OUStringBuffer qname(oldAttr->getPrefix());
- if (0 != qname.getLength()) {
+ if (!qname.isEmpty()) {
qname.append(sal_Unicode(':'));
}
qname.append(oldAttr->getName());