diff options
Diffstat (limited to 'xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx b/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx index e5963f707161..254c00dce3ba 100644 --- a/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx +++ b/xmloff/source/text/XMLIndexBibliographyConfigurationContext.cxx @@ -267,14 +267,13 @@ void XMLIndexBibliographyConfigurationContext::CreateAndInsert(sal_Bool) aAny.setValue(&bSortByPosition, ::getBooleanCppuType()); xPropSet->setPropertyValue(sIsSortByPosition, aAny); - if( (aLocale.Language.getLength() > 0) && - (aLocale.Country.getLength() > 0) ) + if( !aLocale.Language.isEmpty() && !aLocale.Country.isEmpty() ) { aAny <<= aLocale; xPropSet->setPropertyValue(sLocale, aAny); } - if( sAlgorithm.getLength() > 0 ) + if( !sAlgorithm.isEmpty() ) { aAny <<= sAlgorithm; xPropSet->setPropertyValue(sSortAlgorithm, aAny); |