Browse Source

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.
tempestpy_adaptions
gereon 12 years ago
parent
commit
19a1a38c47
  1. 5
      src/utility/settings.h

5
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

Loading…
Cancel
Save