summaryrefslogtreecommitdiff
path: root/i18npool/source/indexentry/indexentrysupplier.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/indexentry/indexentrysupplier.cxx')
-rw-r--r--i18npool/source/indexentry/indexentrysupplier.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier.cxx b/i18npool/source/indexentry/indexentrysupplier.cxx
index fc109658fb40..96fef17c9f44 100644
--- a/i18npool/source/indexentry/indexentrysupplier.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier.cxx
@@ -116,14 +116,14 @@ IndexEntrySupplier::getLocaleSpecificIndexEntrySupplier(const Locale& rLocale, c
rLocale.Country == aLocale.Country && rLocale.Variant == aLocale.Variant)
return xIES;
else {
- LocaleDataImpl ld;
+ uno::Reference<LocaleDataImpl> ld(new LocaleDataImpl);
aLocale = rLocale;
if (rSortAlgorithm.isEmpty())
- aSortAlgorithm = ld.getDefaultIndexAlgorithm( rLocale );
+ aSortAlgorithm = ld->getDefaultIndexAlgorithm( rLocale );
else
aSortAlgorithm = rSortAlgorithm;
- OUString module = ld.getIndexModuleByAlgorithm(rLocale, aSortAlgorithm);
+ OUString module = ld->getIndexModuleByAlgorithm(rLocale, aSortAlgorithm);
if (!module.isEmpty() && createLocaleSpecificIndexEntrySupplier(module))
return xIES;