From 722d31124ca4a958d658b3c8d2d5dba1cb637ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 10 May 2018 20:34:20 +0200 Subject: [PATCH] SettingsHandler: Fix const correctness --- Source/Core/Common/SettingsHandler.cpp | 2 +- Source/Core/Common/SettingsHandler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/SettingsHandler.cpp b/Source/Core/Common/SettingsHandler.cpp index 7663959a20..6ce08f6579 100644 --- a/Source/Core/Common/SettingsHandler.cpp +++ b/Source/Core/Common/SettingsHandler.cpp @@ -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 + "="; diff --git a/Source/Core/Common/SettingsHandler.h b/Source/Core/Common/SettingsHandler.h index d22da844fd..114a2bc0b6 100644 --- a/Source/Core/Common/SettingsHandler.h +++ b/Source/Core/Common/SettingsHandler.h @@ -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();