]> git.tdb.fi Git - libs/game.git/commitdiff
Put Director's destructor in the .cpp file
authorMikko Rasa <tdb@tdb.fi>
Sat, 29 Oct 2022 18:46:28 +0000 (21:46 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 29 Oct 2022 22:25:28 +0000 (01:25 +0300)
source/game/director.cpp
source/game/director.h

index 96bd143dc542b525a66cf61cc16952915b233d8a..b06dff4d4c0045c49a98840831071e7845030603 100644 (file)
@@ -12,6 +12,10 @@ Director::Director(DataFile::Collection &r):
        event_source(event_bus)
 { }
 
+// Hide ~unique_ptr<Stage> from the header
+Director::~Director()
+{ }
+
 Stage &Director::create_stage()
 {
        stages.emplace_back(std::make_unique<Stage>(std::ref(resources)));
index 05be9f7172c653bd04a9a01f72920a42e123b665..de19185849e121e50e7c112ce59aa68a50e46fa7 100644 (file)
@@ -33,6 +33,7 @@ private:
 
 public:
        Director(DataFile::Collection &);
+       ~Director();
 
        DataFile::Collection &get_resources() const { return resources; }
        EventBus &get_event_bus() { return event_bus; }