summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorLéo Lam <leo@innovatetechnologi.es>2018-05-10 20:34:20 +0200
committerLéo Lam <leo@innovatetechnologi.es>2018-05-10 21:35:27 +0200
commit722d31124ca4a958d658b3c8d2d5dba1cb637ab8 (patch)
tree63f6e8dfe922485b79c80f10057b8a02f791be7d /Source/Core
parent09d2afa91f7781c84c25e989d916957200e63eca (diff)
SettingsHandler: Fix const correctness
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/SettingsHandler.cpp2
-rw-r--r--Source/Core/Common/SettingsHandler.h2
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();