diff options
Diffstat (limited to 'xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx index 28c799cb41b9..fc7fa4ded6c5 100644 --- a/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx +++ b/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx @@ -232,14 +232,13 @@ void XMLIndexAlphabeticalSourceContext::EndElement() rIndexPropertySet->setPropertyValue(sIsCommaSeparated, aAny); - if (sAlgorithm.getLength() > 0) + if (!sAlgorithm.isEmpty()) { aAny <<= sAlgorithm; rIndexPropertySet->setPropertyValue(sSortAlgorithm, aAny); } - if ( (aLocale.Language.getLength() > 0) && - (aLocale.Country.getLength() > 0) ) + if ( !aLocale.Language.isEmpty() && !aLocale.Country.isEmpty() ) { aAny <<= aLocale; rIndexPropertySet->setPropertyValue(sLocale, aAny); |