PostProcessing: Make GetShader() return by constant reference

We don't need to create copies of the shader string when they can be
avoided.
This commit is contained in:
Lioncash 2018-05-21 12:07:46 -04:00
parent 9d1b6cdea4
commit c4d27cc8ec
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public:
std::string LoadShader(std::string shader = "");
void SaveOptionsConfiguration();
void ReloadShader();
std::string GetShader() const { return m_current_shader; }
const 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() const { return m_options.size() > 0; }