Forbid instanciation of static classes

This commit is contained in:
Leonetienne
2022-05-31 14:28:17 +02:00
parent 2f6df42696
commit 6a14b7b428
6 changed files with 20 additions and 2 deletions

View File

@@ -19,7 +19,11 @@ class KeyManager {
//! hiding the input.
static std::string PasswordPrompt();
//! The encryption key
static Key key;
// No instanciation! >:(
KeyManager() {};
};
#endif