Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
@ -4249,7 +4249,7 @@ String RenderingDeviceVulkan::_shader_uniform_debug(RID p_shader, int p_set) {
|
||||
}
|
||||
for (int j = 0; j < shader->sets[i].uniform_info.size(); j++) {
|
||||
const UniformInfo &ui = shader->sets[i].uniform_info[j];
|
||||
if (ret != String()) {
|
||||
if (!ret.is_empty()) {
|
||||
ret += "\n";
|
||||
}
|
||||
ret += "Set: " + itos(i) + " Binding: " + itos(ui.binding) + " Type: " + shader_uniform_names[ui.type] + " Length: " + itos(ui.length);
|
||||
|
||||
Reference in New Issue
Block a user