summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-08 16:12:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-09 08:28:56 +0200
commit719a2adfbdac8ce26a035e5fedeeaade8706832d (patch)
tree541a185d2c60d83da75306bab6bd93527c9b4d73 /i18npool
parent4763091bbecab8722a43d0ed73eafc0a1f596242 (diff)
remove unnecessary empty OUString fields and vars
Change-Id: I940120087a0bc6b1b0abc30a3e7727ce22b7d9a7 Reviewed-on: https://gerrit.libreoffice.org/37394 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 ;