summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-15 19:02:57 -0400
committerLioncash <mathew1800@gmail.com>2019-10-15 19:02:59 -0400
commit4f16ce9294f8f77ecfcec35967e6f50caafdea0c (patch)
tree859ab75f93740746b3e194ea6d8afc21507909be /src
parent67df3f7742187abb34d9a2eb4633334331c3318e (diff)
gl_shader_decompiler: Make ExprDecompiler's GetResult() a const member function
This is only ever used to read, but not write, the resulting string, so we can enforce this by making it a const member function.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 2c50ed538..a3524a6a9 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -2335,7 +2335,7 @@ public:
inner += expr.value ? "true" : "false";
}
- std::string& GetResult() {
+ const std::string& GetResult() const {
return inner;
}