From a9b2d7e6fc5ed9797627031e42350d0e2b7b4a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20H=C3=B6hne?= Date: Thu, 1 May 2025 19:48:13 +0200 Subject: [PATCH] feat: Remove copy contructore / assginment in PhanesProject --- .../Core/StartingPoint/StartingPoint.h | 57 +++++++++---------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/Engine/Source/Runtime/Core/StartingPoint/StartingPoint.h b/Engine/Source/Runtime/Core/StartingPoint/StartingPoint.h index 9f43f28..3a144d5 100644 --- a/Engine/Source/Runtime/Core/StartingPoint/StartingPoint.h +++ b/Engine/Source/Runtime/Core/StartingPoint/StartingPoint.h @@ -1,41 +1,40 @@ #pragma once -#include "StartingPointPCH.h" #include "Core/Core.h" +#include "StartingPointPCH.h" -// Entrypoint class for any Phanes game. +// Entrypoint class for any Phanes game. namespace Phanes::Core::Application { - class PhanesProject - { - - private: + class PhanesProject + { - std::string projectName; + private: + std::string projectName; - public: + public: + PhanesProject(std::string _ProjectName); - PhanesProject(std::string _ProjectName); - virtual ~PhanesProject(); + virtual ~PhanesProject(); - /** - * PhanesEngine main loop. + /** + * PhanesEngine main loop. + */ + void Run(); + + /** + * Getter for project name; + */ + + std::string GetName(); + + PhanesProject(const PhanesProject&) = delete; + PhanesProject& operator=(const PhanesProject&) = delete; + }; + + /** + * Function to be overwriten by client. */ - void Run(); - - /** - * Getter for project name; - */ - - std::string GetName(); - - }; - - - /** - * Function to be overwriten by client. - */ - - PhanesProject* CreatePhanesGame(); -} + PhanesProject* CreatePhanesGame(); +} // namespace Phanes::Core::Application