Forbid instanciation of static classes
This commit is contained in:
parent
2f6df42696
commit
6a14b7b428
@ -16,9 +16,10 @@ private:
|
||||
static void CrashWithMsg(const std::string& msg);
|
||||
static void CatchVersionQueries();
|
||||
|
||||
CommandlineInterface() {};
|
||||
|
||||
static Hazelnp::CmdArgsInterface nupp;
|
||||
|
||||
// No instanciation! >:(
|
||||
CommandlineInterface() {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -46,6 +46,9 @@ class Configuration {
|
||||
static void DecideOutputTo();
|
||||
static void DecideIOBaseFormat();
|
||||
static void DecideModule();
|
||||
|
||||
// No instanciation! >:(
|
||||
Configuration() {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -49,6 +49,9 @@ class DataFormatter {
|
||||
const std::vector<std::string>& customSet,
|
||||
const std::string& seperator = ""
|
||||
);
|
||||
|
||||
// No instanciation! >:(
|
||||
DataFormatter() {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -44,6 +44,9 @@ namespace IO {
|
||||
|
||||
// All read blocks, that haven't been given out yet
|
||||
static std::queue<Block> blocks;
|
||||
|
||||
// No instanciation! >:(
|
||||
DataIngestionLayer();
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,11 @@ class KeyManager {
|
||||
//! hiding the input.
|
||||
static std::string PasswordPrompt();
|
||||
|
||||
//! The encryption key
|
||||
static Key key;
|
||||
|
||||
// No instanciation! >:(
|
||||
KeyManager() {};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -8,6 +8,10 @@ namespace Module {
|
||||
public:
|
||||
//! Will write the key to a file
|
||||
static void Run();
|
||||
|
||||
private:
|
||||
// No instanciation! >:(
|
||||
GenerateKey() {};
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user