From abb6c01519a0318d7165dc9dc5b7d185353f93d6 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Mon, 6 Jul 2020 03:39:12 +0200 Subject: replace usage of whitelist with allowlist Background and motivation: https://tools.ietf.org/html/draft-knodel-terminology-02 [API CHANGE] officecfg::Office::Common::Misc::OpenCLWhiteList -> OpenCLAllowList Change-Id: I65636b19b13e4af1e4851f70e78053f3443d6bb1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98181 Tested-by: Thorsten Behrens Reviewed-by: Thorsten Behrens --- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 2 +- lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 04fc7d8e2b0d..3a6a39e92a12 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -162,7 +162,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales() { for (auto const& locale : aLocaleNames) { - if (!comphelper::LibreOfficeKit::isWhitelistedLanguage(locale)) + if (!comphelper::LibreOfficeKit::isAllowlistedLanguage(locale)) continue; aLocaleNamesSet.insert(locale); diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index e165d0962918..b24b8beb51f4 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -139,7 +139,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales() { for (const auto& rLocaleName : dict.aLocaleNames) { - if (!comphelper::LibreOfficeKit::isWhitelistedLanguage(rLocaleName)) + if (!comphelper::LibreOfficeKit::isAllowlistedLanguage(rLocaleName)) continue; aLocaleNamesSet.insert( rLocaleName ); -- cgit