summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-19 15:53:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-20 10:39:28 +0200
commit06eb767c39d8e426aaaa98ce8497d0d3fb867c2b (patch)
tree547cb76e71712f79b1f97bccd5dde201d1cf6d2d /i18nlangtag
parent07a70e84f21ef2a69d8b7a69a1bd3844a0c362f5 (diff)
Turn LanguageTag::ScriptType into scoped enum
...to avoid -Werror,-Wshadow from Clang trunk with <https://reviews.llvm.org/D52400> "Improve -Wshadow warnings with enumerators", warning about shadowing of UNKNOWN in e.g. enum ESCHER_BlibType in include/filter/msfilter/escherex.hxx Change-Id: Id6608474e76730be4c439f480c31f661b8b5748e Reviewed-on: https://gerrit.libreoffice.org/62013 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index ba3d82cce475..c0e27492f912 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -673,7 +673,7 @@ LanguageTag::ScriptType LanguageTag::getOnTheFlyScriptType( LanguageType nRegist
if (itID != rMapLangID.end())
return (*itID).second->getScriptType();
else
- return UNKNOWN;
+ return ScriptType::UNKNOWN;
}