From: Mikko Rasa Date: Fri, 4 Nov 2022 22:42:06 +0000 (+0200) Subject: Cosmetic fixes X-Git-Url: http://git.tdb.fi/?p=libs%2Fgame.git;a=commitdiff_plain;h=c48c91b722ae2ce34becc1ba975cd3b937f58b83 Cosmetic fixes --- diff --git a/source/game/owned.h b/source/game/owned.h index b305ae2..7159c7d 100644 --- a/source/game/owned.h +++ b/source/game/owned.h @@ -47,7 +47,7 @@ Owned::Owned(Handle

parent, Args &&... args) throw std::invalid_argument("Owned::Owned"); Stage &stage = get_stage(*parent); - Pool &pool = stage.get_pools().template get_pool(); + Pool &pool = stage.get_pools().get_pool(); this->ptr = pool.create(parent, std::forward(args)...); if constexpr(std::is_base_of_v) { @@ -102,7 +102,7 @@ void Owned::destroy() parent->remove_child(*this); } - Pool &pool = stage.get_pools().template get_pool(); + Pool &pool = stage.get_pools().get_pool(); pool.destroy(this->ptr); } diff --git a/source/game/pool.cpp b/source/game/pool.cpp index 901e09e..95e1b4a 100644 --- a/source/game/pool.cpp +++ b/source/game/pool.cpp @@ -59,7 +59,7 @@ PoolBase::~PoolBase() void PoolBase::destroy_all() { if(object_count>0) - IO::print(IO::cerr, "Warning: pool is being destroyed but has %d live objects", object_count); + IO::print(IO::cerr, "Warning: pool is being destroyed but has %d live objects\n", object_count); unsigned block_count = capacity/BLOCK_SIZE; for(unsigned i=0; i #include