mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-20 22:45:44 +08:00
get() goes const, add clear()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user