From 9d1b6cdea401b4afadda95e38b8e6e8c337a39f7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 21 May 2018 11:59:04 -0400 Subject: [PATCH] PostProcessing: Make member functions const qualified where applicable These functions don't modify internal class state --- Source/Core/VideoCommon/PostProcessing.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/PostProcessing.h b/Source/Core/VideoCommon/PostProcessing.h index 30f3bf966f..fc60fb4676 100644 --- a/Source/Core/VideoCommon/PostProcessing.h +++ b/Source/Core/VideoCommon/PostProcessing.h @@ -57,10 +57,10 @@ public: std::string LoadShader(std::string shader = ""); void SaveOptionsConfiguration(); void ReloadShader(); - std::string GetShader() { return m_current_shader; } - bool IsDirty() { return m_any_options_dirty; } + std::string GetShader() const { return m_current_shader; } + bool IsDirty() const { return m_any_options_dirty; } void SetDirty(bool dirty) { m_any_options_dirty = dirty; } - bool HasOptions() { return m_options.size() > 0; } + bool HasOptions() const { return m_options.size() > 0; } const ConfigMap& GetOptions() const { return m_options; } ConfigMap& GetOptions() { return m_options; } const ConfigurationOption& GetOption(const std::string& option) { return m_options[option]; }