mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 04:46:27 -05:00
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
This commit is contained in:
parent
d3cfaf95c8
commit
c2121cb059
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a GLSL string representing the current state of the register
|
/// Returns a GLSL string representing the current state of the register
|
||||||
const std::string GetActiveString() {
|
std::string GetActiveString() {
|
||||||
declr_type.insert(active_type);
|
declr_type.insert(active_type);
|
||||||
return GetPrefixString(active_type) + std::to_string(index) + '_' + suffix;
|
return GetPrefixString(active_type) + std::to_string(index) + '_' + suffix;
|
||||||
}
|
}
|
||||||
|
@ -518,7 +518,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Build GLSL conversion function, e.g. floatBitsToInt, intBitsToFloat, etc.
|
/// Build GLSL conversion function, e.g. floatBitsToInt, intBitsToFloat, etc.
|
||||||
const std::string GetGLSLConversionFunc(GLSLRegister::Type src, GLSLRegister::Type dest) const {
|
std::string GetGLSLConversionFunc(GLSLRegister::Type src, GLSLRegister::Type dest) const {
|
||||||
const std::string src_type = GLSLRegister::GetTypeString(src);
|
const std::string src_type = GLSLRegister::GetTypeString(src);
|
||||||
std::string dest_type = GLSLRegister::GetTypeString(dest);
|
std::string dest_type = GLSLRegister::GetTypeString(dest);
|
||||||
dest_type[0] = toupper(dest_type[0]);
|
dest_type[0] = toupper(dest_type[0]);
|
||||||
|
|
Loading…
Reference in a new issue