From ecc5761fa78ccb57db958467c3fc999aceadd409 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 27 Oct 2024 16:50:20 +0100 Subject: fix valuebroker/proxy system --- src/crepe/api/SaveManager.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/crepe/api/SaveManager.h') diff --git a/src/crepe/api/SaveManager.h b/src/crepe/api/SaveManager.h index 37463ca..78cd4ba 100644 --- a/src/crepe/api/SaveManager.h +++ b/src/crepe/api/SaveManager.h @@ -1,6 +1,6 @@ #pragma once -#include "../Proxy.h" +#include "../ValueBroker.h" namespace crepe::api { @@ -8,11 +8,11 @@ class SaveManager { public: //! Get a reference to a value and initialize it with a value if it does not yet exist template - Proxy & get(const char * key, const T & default_value); + ValueBroker & get(const char * key, const T & default_value); //! Get a reference to a value template - Proxy & get(const char * key); + ValueBroker & get(const char * key); //! Set a value directly template @@ -22,8 +22,8 @@ public: bool has(const char * key); private: - SaveManager(); - virtual ~SaveManager(); + SaveManager() = default; + virtual ~SaveManager() = default; public: // singleton -- cgit v1.2.3