mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
get() goes const, add clear()
This commit is contained in:
parent
b7f5fdd8a2
commit
abf17e19fc
2 changed files with 8 additions and 2 deletions
|
|
@ -40,7 +40,8 @@ public:
|
|||
static bool isValidKey(const std::string key);
|
||||
|
||||
void set(const std::string key, const std::string value);
|
||||
std::string get(const std::string key);
|
||||
const std::string get(const std::string key) const;
|
||||
void clear(void);
|
||||
|
||||
private:
|
||||
std::unordered_map<std::string, std::string> m_db;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue