From 19a1a38c473228e6f6310e4be24dc1fa09d7c921 Mon Sep 17 00:00:00 2001 From: gereon Date: Sun, 9 Dec 2012 15:06:12 +0100 Subject: [PATCH] made Callbacks::getInstance private There is nothing a non-friend can do with an instance of Callbacks, hence the is no point in making it public. --- src/utility/settings.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utility/settings.h b/src/utility/settings.h index 163dc9376..cfafad475 100644 --- a/src/utility/settings.h +++ b/src/utility/settings.h @@ -147,6 +147,9 @@ namespace settings { * @brief This class handles callbacks for registering new options and * checking constraints on them afterwards. * + * As it should never be used directly, but only through the Register + * class, it does not provide any public methods. + * * This class is also a singleton (like Settings) and is implemented much * simpler as we don't need any custom initialization code. */ @@ -174,7 +177,7 @@ namespace settings { * @brief Private destructor. */ ~Callbacks() {} - public: + /*! * @brief Returns current instance to create singleton. * @return current instance