summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-19 20:05:02 -0400
committerGravatar Lioncash2018-07-19 20:11:04 -0400
commitc2121cb059f9b9d64afd9f3f62f385ccd37d140c (patch)
treecb86a6ec34f9432dd0fed61d81e33b5553aeeecc
parentMerge pull request #726 from lioncash/overload (diff)
downloadyuzu-c2121cb059f9b9d64afd9f3f62f385ccd37d140c.tar.gz
yuzu-c2121cb059f9b9d64afd9f3f62f385ccd37d140c.tar.xz
yuzu-c2121cb059f9b9d64afd9f3f62f385ccd37d140c.zip
gl_shader_decompiler: Remove unnecessary const from return values
This adds nothing from a behavioral point of view, and can inhibit the move constructor/RVO
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 5fae95788..9b308b923 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -216,7 +216,7 @@ public:
216 } 216 }
217 217
218 /// Returns a GLSL string representing the current state of the register 218 /// Returns a GLSL string representing the current state of the register
219 const std::string GetActiveString() { 219 std::string GetActiveString() {
220 declr_type.insert(active_type); 220 declr_type.insert(active_type);
221 return GetPrefixString(active_type) + std::to_string(index) + '_' + suffix; 221 return GetPrefixString(active_type) + std::to_string(index) + '_' + suffix;
222 } 222 }
@@ -518,7 +518,7 @@ public:
518 518
519private: 519private:
520 /// Build GLSL conversion function, e.g. floatBitsToInt, intBitsToFloat, etc. 520 /// Build GLSL conversion function, e.g. floatBitsToInt, intBitsToFloat, etc.
521 const std::string GetGLSLConversionFunc(GLSLRegister::Type src, GLSLRegister::Type dest) const { 521 std::string GetGLSLConversionFunc(GLSLRegister::Type src, GLSLRegister::Type dest) const {
522 const std::string src_type = GLSLRegister::GetTypeString(src); 522 const std::string src_type = GLSLRegister::GetTypeString(src);
523 std::string dest_type = GLSLRegister::GetTypeString(dest); 523 std::string dest_type = GLSLRegister::GetTypeString(dest);
524 dest_type[0] = toupper(dest_type[0]); 524 dest_type[0] = toupper(dest_type[0]);