Kaydet (Commit) d4494c33 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid ODR-violating name clash

Change-Id: I4911dcb5d902a5b92d4c175054acd220e449459d
üst 0968e47b
......@@ -41,6 +41,8 @@ using namespace ::com::sun::star::document;
using namespace ::com::sun::star::xml::sax;
using namespace ::xmloff::token;
namespace {
struct XMLServiceMapEntry_Impl
{
enum XMLTokenEnum eClass;
......@@ -48,6 +50,8 @@ struct XMLServiceMapEntry_Impl
sal_Int32 nFilterServiceLen;
};
}
#define SERVICE_MAP_ENTRY( cls, app ) \
{ XML_##cls, \
XML_IMPORT_FILTER_##app, sizeof(XML_IMPORT_FILTER_##app)-1}
......
......@@ -114,6 +114,8 @@ sal_Char const sXML_1_2[] = "1.2";
#define XML_USEPRETTYPRINTING "UsePrettyPrinting"
namespace {
struct XMLServiceMapEntry_Impl
{
const sal_Char *sModelService;
......@@ -122,6 +124,8 @@ struct XMLServiceMapEntry_Impl
sal_Int32 nFilterServiceLen;
};
}
#define SERVICE_MAP_ENTRY( app ) \
{ XML_MODEL_SERVICE_##app, sizeof(XML_MODEL_SERVICE_##app)-1, \
XML_EXPORT_FILTER_##app, sizeof(XML_EXPORT_FILTER_##app)-1 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment