From 658d5136f16f562bb341aee8424816c6cd22144e Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 12 Feb 2013 09:07:48 +0200 Subject: WaE: anonymous type with no linkage used to declare variable with linkage Let's just use old-fashioned (?) "static" linkage instead then for this variable if the anonymous namespace thing confuses some compilers. Change-Id: Ibf0105f9c87502b067219f119304b6fa5003b443 --- sc/source/filter/xml/editattributemap.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sc/source/filter/xml/editattributemap.cxx b/sc/source/filter/xml/editattributemap.cxx index 22b4016bd132..3c9c889a1114 100644 --- a/sc/source/filter/xml/editattributemap.cxx +++ b/sc/source/filter/xml/editattributemap.cxx @@ -12,9 +12,7 @@ #include "editeng/eeitem.hxx" #include "editeng/memberids.hrc" -namespace { - -struct { +static struct { const char* mpXMLName; const char* mpAPIName; sal_uInt16 mnItemID; @@ -69,8 +67,6 @@ struct { { "country-complex", "CharLocaleComplex", EE_CHAR_LANGUAGE_CTL, MID_LANG_LOCALE }, }; -} - ScXMLEditAttributeMap::Entry::Entry(sal_uInt16 nItemID, sal_uInt8 nFlag) : mnItemID(nItemID), mnFlag(nFlag) {} -- cgit