[Libreoffice-commits] core.git: i18npool/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 19 06:31:09 UTC 2019


 i18npool/source/transliteration/transliterationImpl.cxx |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 153aa090db6ae6fb9809305f56b06056865c69f4
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Nov 18 23:05:10 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Nov 19 07:30:28 2019 +0100

    Improved loplugin:external, handling class types
    
    ...renaming type as TMList to avoid ambiguity between i18npool::TMlist and
    i18npool::(anonymous namespace)::TMlist
    
    Change-Id: I712fca9a9a7023e5a217c019195e3aa51e858f81
    Reviewed-on: https://gerrit.libreoffice.org/83132
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/i18npool/source/transliteration/transliterationImpl.cxx b/i18npool/source/transliteration/transliterationImpl.cxx
index 195f7a789643..6a1c13d2b677 100644
--- a/i18npool/source/transliteration/transliterationImpl.cxx
+++ b/i18npool/source/transliteration/transliterationImpl.cxx
@@ -48,12 +48,18 @@ namespace i18npool {
 #define TmItem2( name ) \
   {TransliterationModules(0), TransliterationModulesNew_##name, #name}
 
+namespace {
+
 // Ignore Module list
-static struct TMlist {
+struct TMList {
   TransliterationModules        tm;
   TransliterationModulesNew     tmn;
   const sal_Char               *implName;
-} const TMlist[] = {                            //      Modules      ModulesNew
+};
+
+}
+
+static TMList const TMlist[] = {                //      Modules      ModulesNew
   TmItem1 (IGNORE_CASE),                        // 0. (1<<8        256) (7)
   TmItem1 (IGNORE_WIDTH),                       // 1. (1<<9        512) (8)
   TmItem1 (IGNORE_KANA),                        // 2. (1<<10      1024) (9)


More information about the Libreoffice-commits mailing list