summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLPropertyBackpatcher.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLPropertyBackpatcher.cxx')
-rw-r--r--xmloff/source/text/XMLPropertyBackpatcher.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx
index fadec64cddb2..0d8beec53194 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.cxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx
@@ -61,7 +61,7 @@ XMLPropertyBackpatcher<A>::XMLPropertyBackpatcher(
A aDef)
: sPropertyName(sPropName)
, bDefaultHandling(bDefault)
-, bPreserveProperty(sPreserveName.getLength()>0)
+, bPreserveProperty(!sPreserveName.isEmpty())
, sPreservePropertyName(sPreserveName)
, aDefault(aDef)
{