2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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.
This commit is contained in:
Lioncash 2019-10-15 19:02:57 -04:00
parent 67df3f7742
commit 4f16ce9294

View file

@ -2335,7 +2335,7 @@ public:
inner += expr.value ? "true" : "false"; inner += expr.value ? "true" : "false";
} }
std::string& GetResult() { const std::string& GetResult() const {
return inner; return inner;
} }