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
This commit is contained in:
Tor Lillqvist
2013-02-12 09:07:48 +02:00
parent 61867bd749
commit 658d5136f1

View File

@@ -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) {}