summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-26 02:34:42 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-26 02:34:42 +0100
commit48137dc683a054c5a10580dec8671efa39b50ef8 (patch)
tree89f7d4b2ed4bd43065577e72092d511defb11868
parentUpdate documentation (diff)
downloadlibadhocutil-48137dc683a054c5a10580dec8671efa39b50ef8.tar.bz2
libadhocutil-48137dc683a054c5a10580dec8671efa39b50ef8.tar.xz
libadhocutil-48137dc683a054c5a10580dec8671efa39b50ef8.zip
Fix typo in macro name
-rw-r--r--libadhocutil/factory.impl.h4
-rw-r--r--libadhocutil/plugins.impl.h2
-rw-r--r--libadhocutil/unittests/testFactory.cpp2
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<Base, __VA_ARGS__>; \
typedef AdHoc::Factory<Base, __VA_ARGS__> 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<T>; \
template void AdHoc::PluginManager::add<T>(const T *, const std::string &, const std::string &, int); \
template void AdHoc::PluginManager::remove<T>(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<BaseThing, int, std::string> BaseThingFactory;
NAMEDFACTORY("a", ImplOfThing, BaseThingFactory);
FACTORY(OtherImplOfThing, BaseThingFactory);
-INSTANIATEFACTORY(BaseThing, int, std::string);
+INSTANTIATEFACTORY(BaseThing, int, std::string);
BOOST_AUTO_TEST_CASE( ready )
{