summaryrefslogtreecommitdiff
path: root/unoxml/source/dom/element.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml/source/dom/element.cxx')
-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());