From a3adbacc3bf0d714cc2e721b6fbbc62f6a424132 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Mon, 5 May 2025 12:01:20 -0400 Subject: [PATCH] refactor(const): header guard -> pragma once also removed unused includes --- src/const/public/const.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/const/public/const.h b/src/const/public/const.h index 419382c..c65dd4e 100644 --- a/src/const/public/const.h +++ b/src/const/public/const.h @@ -18,13 +18,10 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // *********************************************************************** */ -#ifndef CONST_H -#define CONST_H +#pragma once #include -#include #include -#include #include #include @@ -96,7 +93,7 @@ private: public: /** - * @brief get instance of constants singelton + * @brief get instance of constants singleton * @return instance of constants */ static Constants& getInstance() { @@ -108,7 +105,7 @@ public: * @brief Check if constants are loaded. * @return True if constants are loaded, false otherwise. */ - bool isLoaded() { return loaded_; } + bool isLoaded() const { return loaded_; } /** * @brief Get a constant by key. @@ -139,5 +136,3 @@ public: std::set keys() const; }; - -#endif