소스 검색

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 6 년 전
부모
커밋
4f16ce9294
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }