summaryrefslogtreecommitdiff
path: root/libadhocutil/unittests/testFactory.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-17 19:35:11 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-02-12 21:10:48 +0000
commit854abea18ca1a46c69b2eed1698839db36b5deb7 (patch)
tree47d4d9bccc3b928bde2c549e65ff066833bba580 /libadhocutil/unittests/testFactory.cpp
parentEnable some clang-tidy checks and fix up accordingly (diff)
downloadlibadhocutil-854abea18ca1a46c69b2eed1698839db36b5deb7.tar.bz2
libadhocutil-854abea18ca1a46c69b2eed1698839db36b5deb7.tar.xz
libadhocutil-854abea18ca1a46c69b2eed1698839db36b5deb7.zip
More clang-tidy WIP
Diffstat (limited to 'libadhocutil/unittests/testFactory.cpp')
-rw-r--r--libadhocutil/unittests/testFactory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libadhocutil/unittests/testFactory.cpp b/libadhocutil/unittests/testFactory.cpp
index 0eb959c..b8b910d 100644
--- a/libadhocutil/unittests/testFactory.cpp
+++ b/libadhocutil/unittests/testFactory.cpp
@@ -26,7 +26,7 @@ class BaseThing {
class ImplOfThing : public BaseThing {
public:
ImplOfThing(int i, std::string * s) : BaseThing(i, s) {}
- void execute() const
+ void execute() const override
{
*name = typeid(this).name();
}
@@ -34,13 +34,13 @@ class ImplOfThing : public BaseThing {
class OtherImplOfThing : public BaseThing {
public:
OtherImplOfThing(int i, std::string * s) : BaseThing(i, s) {}
- void execute() const
+ void execute() const override
{
*name = typeid(this).name();
}
};
-typedef AdHoc::Factory<BaseThing, int, std::string *> BaseThingFactory;
+using BaseThingFactory = AdHoc::Factory<BaseThing, int, std::string *>;
NAMEDFACTORY("a", ImplOfThing, BaseThingFactory);
FACTORY(OtherImplOfThing, BaseThingFactory);