From a0f6ff6f7d839f10ed5fc8f31904e18edd37687d Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 20 Dec 2024 17:53:18 -0600 Subject: [PATCH] refactor app config --- repertory/librepertory/include/app_config.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/repertory/librepertory/include/app_config.hpp b/repertory/librepertory/include/app_config.hpp index 19442a74..56d73790 100644 --- a/repertory/librepertory/include/app_config.hpp +++ b/repertory/librepertory/include/app_config.hpp @@ -55,8 +55,15 @@ public: public: app_config(const provider_type &prov, std::string_view data_directory = ""); + app_config() = delete; + app_config(app_config &&) = delete; + app_config(const app_config &) = delete; + ~app_config() { save(); } + auto operator=(const app_config &) -> app_config & = delete; + auto operator=(app_config &&) -> app_config & = delete; + private: provider_type prov_; atomic api_auth_;