mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 19:42:43 +00:00
Merge pull request #80422 from AThousandShips/shader_test_fix
Remove use of `std::string` in test
This commit is contained in:
commit
821579e804
@ -52,8 +52,7 @@ bool is_variable_char(unsigned char c) {
|
||||
}
|
||||
|
||||
bool is_operator_char(unsigned char c) {
|
||||
static const std::string operators = "<>=+-*/";
|
||||
return operators.find(c) != std::string::npos;
|
||||
return (c == '*') || (c == '+') || (c == '-') || (c == '/') || ((c >= '<') && (c <= '>'));
|
||||
}
|
||||
|
||||
// Remove unnecessary spaces from a line.
|
||||
|
Loading…
Reference in New Issue
Block a user