SettingsHandler: Fix const correctness

This commit is contained in:
Léo Lam 2018-05-10 20:34:20 +02:00
parent 09d2afa91f
commit 722d31124c
2 changed files with 2 additions and 2 deletions

View File

@ -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 + "=";

View File

@ -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();