From 6ce7a5e31e241da6707604440adc3c3dc32fde5d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 20 Oct 2016 10:28:51 +0100 Subject: Make hook parts dll private --- slicer/slicer/modelPartsTypes.h | 6 +++--- slicer/tool/parser.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/slicer/slicer/modelPartsTypes.h b/slicer/slicer/modelPartsTypes.h index d19f03d..6a464e8 100644 --- a/slicer/slicer/modelPartsTypes.h +++ b/slicer/slicer/modelPartsTypes.h @@ -101,7 +101,7 @@ namespace Slicer { template class DLL_PUBLIC ModelPartForComplex : public ModelPartForComplexBase { public: - class HookBase : public HookCommon { + class DLL_PRIVATE HookBase : public HookCommon { public: virtual ModelPartPtr Get(T * t) const = 0; virtual const Metadata & GetMetadata() const override { return emptyMetadata; } @@ -109,7 +109,7 @@ namespace Slicer { typedef IceUtil::Handle HookPtr; template - class HookMetadata : public HookBase { + class DLL_PRIVATE HookMetadata : public HookBase { public: virtual const Metadata & GetMetadata() const override { return metadata; } @@ -117,7 +117,7 @@ namespace Slicer { }; template > - class Hook : public Base { + class DLL_PRIVATE Hook : public Base { public: Hook(const std::string & n) : name(n) diff --git a/slicer/tool/parser.cpp b/slicer/tool/parser.cpp index f8ec87b..d492632 100644 --- a/slicer/tool/parser.cpp +++ b/slicer/tool/parser.cpp @@ -295,7 +295,7 @@ namespace Slicer { t = Slice::ClassDefPtr::dynamicCast(dm->container())->declaration(); } auto type = dm->type(); - fprintbf(cpp, "template<>\ntemplate<> DLL_PUBLIC\nconst Metadata\n"); + fprintbf(cpp, "template<>\ntemplate<> DLL_PRIVATE\nconst Metadata\n"); createNewModelPartPtrFor(it); fprintbf(cpp, "::HookMetadata< %s", Slice::typeToString(type, dm->optional())); -- cgit v1.2.3