mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Replace size() == 0 with is_empty().
This commit is contained in:
parent
c7ea8614d7
commit
4f4031a675
147 changed files with 300 additions and 300 deletions
|
@ -133,7 +133,7 @@ void ShaderPreprocessor::Tokenizer::skip_whitespace() {
|
|||
|
||||
bool ShaderPreprocessor::Tokenizer::consume_empty_line() {
|
||||
// Read until newline and return true if the content was all whitespace/empty.
|
||||
return tokens_to_string(advance('\n')).strip_edges().size() == 0;
|
||||
return tokens_to_string(advance('\n')).strip_edges().is_empty();
|
||||
}
|
||||
|
||||
String ShaderPreprocessor::Tokenizer::get_identifier(bool *r_is_cursor, bool p_started) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue