diff options
| author | 2019-10-15 19:02:57 -0400 | |
|---|---|---|
| committer | 2019-10-15 19:02:59 -0400 | |
| commit | 4f16ce9294f8f77ecfcec35967e6f50caafdea0c (patch) | |
| tree | 859ab75f93740746b3e194ea6d8afc21507909be /src | |
| parent | gl_shader_decompiler: Use a std::string_view with GetDeclarationWithSuffix() (diff) | |
| download | yuzu-4f16ce9294f8f77ecfcec35967e6f50caafdea0c.tar.gz yuzu-4f16ce9294f8f77ecfcec35967e6f50caafdea0c.tar.xz yuzu-4f16ce9294f8f77ecfcec35967e6f50caafdea0c.zip | |
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.cpp | 2 |
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: | |||
| 2335 | inner += expr.value ? "true" : "false"; | 2335 | inner += expr.value ? "true" : "false"; |
| 2336 | } | 2336 | } |
| 2337 | 2337 | ||
| 2338 | std::string& GetResult() { | 2338 | const std::string& GetResult() const { |
| 2339 | return inner; | 2339 | return inner; |
| 2340 | } | 2340 | } |
| 2341 | 2341 | ||