From ea8cc60dc4af9b88d13f4a143986a3fad7e1691a Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 27 Mar 2022 20:22:52 +0200 Subject: refactor: clean up DI code --- src/interfaces/engine.hpp | 3 +++ src/interfaces/window.hpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'src/interfaces') diff --git a/src/interfaces/engine.hpp b/src/interfaces/engine.hpp index 6830340..72d8f81 100644 --- a/src/interfaces/engine.hpp +++ b/src/interfaces/engine.hpp @@ -2,8 +2,11 @@ #include +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class ICLIGameEngine { public: + virtual ~ICLIGameEngine() noexcept = default; + virtual void start() noexcept = 0; }; diff --git a/src/interfaces/window.hpp b/src/interfaces/window.hpp index 5da9aff..d880762 100644 --- a/src/interfaces/window.hpp +++ b/src/interfaces/window.hpp @@ -2,8 +2,11 @@ #include "engine/data/bounds.hpp" +// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions) class IWindow { public: + virtual ~IWindow() noexcept = default; + [[nodiscard]] virtual Bounds size() const noexcept = 0; }; -- cgit v1.2.3-18-g5258