From 48137dc683a054c5a10580dec8671efa39b50ef8 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 26 Sep 2015 02:34:42 +0100 Subject: Fix typo in macro name --- libadhocutil/factory.impl.h | 4 ++-- libadhocutil/plugins.impl.h | 2 +- libadhocutil/unittests/testFactory.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libadhocutil/factory.impl.h b/libadhocutil/factory.impl.h index 9320419..c3b52a5 100644 --- a/libadhocutil/factory.impl.h +++ b/libadhocutil/factory.impl.h @@ -23,10 +23,10 @@ namespace AdHoc { } } -#define INSTANIATEFACTORY(Base, ...) \ +#define INSTANTIATEFACTORY(Base, ...) \ template class AdHoc::Factory; \ typedef AdHoc::Factory FactoryType; \ - INSTANIATEPLUGINOF(FactoryType) + INSTANTIATEPLUGINOF(FactoryType) #endif diff --git a/libadhocutil/plugins.impl.h b/libadhocutil/plugins.impl.h index a0cff98..9a2a880 100644 --- a/libadhocutil/plugins.impl.h +++ b/libadhocutil/plugins.impl.h @@ -89,7 +89,7 @@ namespace AdHoc { } } -#define INSTANIATEPLUGINOF(T) \ +#define INSTANTIATEPLUGINOF(T) \ template class AdHoc::PluginOf; \ template void AdHoc::PluginManager::add(const T *, const std::string &, const std::string &, int); \ template void AdHoc::PluginManager::remove(const std::string &); \ diff --git a/libadhocutil/unittests/testFactory.cpp b/libadhocutil/unittests/testFactory.cpp index 6c0a5d5..24f731f 100644 --- a/libadhocutil/unittests/testFactory.cpp +++ b/libadhocutil/unittests/testFactory.cpp @@ -32,7 +32,7 @@ typedef AdHoc::Factory BaseThingFactory; NAMEDFACTORY("a", ImplOfThing, BaseThingFactory); FACTORY(OtherImplOfThing, BaseThingFactory); -INSTANIATEFACTORY(BaseThing, int, std::string); +INSTANTIATEFACTORY(BaseThing, int, std::string); BOOST_AUTO_TEST_CASE( ready ) { -- cgit v1.2.3