mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +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
|
|
@ -44,7 +44,7 @@ void CUserDBentry::set(const std::string key, const std::string value)
|
|||
m_db[key] = value;
|
||||
}
|
||||
|
||||
std::string CUserDBentry::get(const std::string key)
|
||||
const std::string CUserDBentry::get(const std::string key) const
|
||||
{
|
||||
try {
|
||||
return m_db.at(key);
|
||||
|
|
@ -52,3 +52,8 @@ std::string CUserDBentry::get(const std::string key)
|
|||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void CUserDBentry::clear(void)
|
||||
{
|
||||
m_db.clear();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue