summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx5
-rw-r--r--i18npool/source/localedata/LocaleNode.hxx2
2 files changed, 3 insertions, 4 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index eaf50e0c2759..0fba9c6f5d99 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -2390,13 +2390,12 @@ Attr::Attr (const Reference< XAttributeList > & attr) {
}
}
-const OUString& Attr::getValueByName (const sal_Char *str) const {
- static OUString empty;
+OUString Attr::getValueByName (const sal_Char *str) const {
sal_Int32 len = name.getLength();
for (sal_Int32 i = 0;i<len;i++)
if (name[i].equalsAscii(str))
return value[i];
- return empty;
+ return OUString();
}
sal_Int32 Attr::getLength() const{
diff --git a/i18npool/source/localedata/LocaleNode.hxx b/i18npool/source/localedata/LocaleNode.hxx
index 31f7c95d9d57..b64bdbb4ba0d 100644
--- a/i18npool/source/localedata/LocaleNode.hxx
+++ b/i18npool/source/localedata/LocaleNode.hxx
@@ -72,7 +72,7 @@ class Attr {
public:
explicit Attr (const Reference< XAttributeList > & attr);
- const OUString& getValueByName (const sal_Char *str) const;
+ OUString getValueByName (const sal_Char *str) const;
sal_Int32 getLength() const;
const OUString& getTypeByIndex (sal_Int32 idx) const;
const OUString& getValueByIndex (sal_Int32 idx) const ;