From c48c91b722ae2ce34becc1ba975cd3b937f58b83 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 5 Nov 2022 00:42:06 +0200 Subject: [PATCH] Cosmetic fixes --- source/game/owned.h | 4 ++-- source/game/pool.cpp | 2 +- source/game/pool.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.43.0