Explorar o código

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.
Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
4f16ce9294
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 1 - 1
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;
     }