From d7612871b4779278d3f6302d4dc3daadc75d5e82 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 14 Jul 2015 19:53:28 +0100 Subject: [PATCH] Const some condition grammar member functions. --- src/backend/metadata/condition_grammar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/metadata/condition_grammar.h b/src/backend/metadata/condition_grammar.h index 2cc16ad0..d8cf4530 100644 --- a/src/backend/metadata/condition_grammar.h +++ b/src/backend/metadata/condition_grammar.h @@ -144,7 +144,7 @@ namespace loot { bool _parseOnly; //Eval's exact paths. Check for files and ghosted plugins. - void CheckFile(bool& result, const std::string& file) { + void CheckFile(bool& result, const std::string& file) const { if (_parseOnly) return; @@ -275,7 +275,7 @@ namespace loot { result = checksum == crc; } - void CheckVersion(bool& result, const std::string& file, const std::string& version, const std::string& comparator) { + void CheckVersion(bool& result, const std::string& file, const std::string& version, const std::string& comparator) const { if (_parseOnly) return; @@ -313,7 +313,7 @@ namespace loot { BOOST_LOG_TRIVIAL(trace) << "Version check result: " << result; } - void CheckActive(bool& result, const std::string& file) { + void CheckActive(bool& result, const std::string& file) const { if (_parseOnly) return; @@ -340,7 +340,7 @@ namespace loot { } //Checks that the path (not regex) doesn't go outside any game folders. - bool IsSafePath(const std::string& path) { + bool IsSafePath(const std::string& path) const { BOOST_LOG_TRIVIAL(trace) << "Checking to see if the path \"" << path << "\" is safe."; std::vector components;