SettingsHandler: Fix const correctness
This commit is contained in:
parent
09d2afa91f
commit
722d31124c
|
@ -44,7 +44,7 @@ void SettingsHandler::SetBytes(SettingsHandler::Buffer&& buffer)
|
|||
Decrypt();
|
||||
}
|
||||
|
||||
const std::string SettingsHandler::GetValue(const std::string& key)
|
||||
std::string SettingsHandler::GetValue(const std::string& key) const
|
||||
{
|
||||
std::string delim = std::string("\r\n");
|
||||
std::string toFind = delim + key + "=";
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
|
||||
const Buffer& GetBytes() const;
|
||||
void SetBytes(Buffer&& buffer);
|
||||
const std::string GetValue(const std::string& key);
|
||||
std::string GetValue(const std::string& key) const;
|
||||
|
||||
void Decrypt();
|
||||
void Reset();
|
||||
|
|
Loading…
Reference in New Issue