summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx')
-rw-r--r--xmloff/source/text/XMLIndexAlphabeticalSourceContext.cxx5
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);