[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at iki.fi
Mon Feb 11 23:09:33 PST 2013
sc/source/filter/xml/editattributemap.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 658d5136f16f562bb341aee8424816c6cd22144e
Author: Tor Lillqvist <tml at iki.fi>
Date: Tue Feb 12 09:07:48 2013 +0200
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
diff --git a/sc/source/filter/xml/editattributemap.cxx b/sc/source/filter/xml/editattributemap.cxx
index 22b4016..3c9c889 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) {}
More information about the Libreoffice-commits
mailing list