From 34d28e8b3a920b07c4bc0851a143fae30cdbe886 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 5 Sep 2018 14:42:59 +0200 Subject: [PATCH] Prefix Kernel factory struct as well --- src/ifcgeom/IfcGeomFunctions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index 5d4b58f56a..70270eba8a 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -154,7 +154,7 @@ #endif namespace { - struct factory_t { + struct MAKE_TYPE_NAME(factory_t) { IfcGeom::Kernel* operator()(IfcParse::IfcFile* file) const { IfcGeom::MAKE_TYPE_NAME(Kernel)* k = new IfcGeom::MAKE_TYPE_NAME(Kernel); if (file) { @@ -207,7 +207,7 @@ namespace { void MAKE_INIT_FN(KernelImplementation_)(IfcGeom::impl::KernelFactoryImplementation* mapping) { static const std::string schema_name = STRINGIFY(IfcSchema); - factory_t factory; + MAKE_TYPE_NAME(factory_t) factory; mapping->bind(schema_name, factory); }