mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 18:03:35 +00:00
Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
@ -490,17 +490,17 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
if (oe.callstack.size() > 0) {
|
||||
// If available, use the script's stack in the error title.
|
||||
error_title = oe.callstack[oe.callstack.size() - 1].func + ": ";
|
||||
} else if (!oe.source_func.empty()) {
|
||||
} else if (!oe.source_func.is_empty()) {
|
||||
// Otherwise try to use the C++ source function.
|
||||
error_title += oe.source_func + ": ";
|
||||
}
|
||||
// If we have a (custom) error message, use it as title, and add a C++ Error
|
||||
// item with the original error condition.
|
||||
error_title += oe.error_descr.empty() ? oe.error : oe.error_descr;
|
||||
error_title += oe.error_descr.is_empty() ? oe.error : oe.error_descr;
|
||||
error->set_text(1, error_title);
|
||||
tooltip += " " + error_title + "\n";
|
||||
|
||||
if (!oe.error_descr.empty()) {
|
||||
if (!oe.error_descr.is_empty()) {
|
||||
// Add item for C++ error condition.
|
||||
TreeItem *cpp_cond = error_tree->create_item(error);
|
||||
cpp_cond->set_text(0, "<" + TTR("C++ Error") + ">");
|
||||
|
@ -516,7 +516,7 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
|
|||
|
||||
// Source of the error.
|
||||
String source_txt = (source_is_project_file ? oe.source_file.get_file() : oe.source_file) + ":" + itos(oe.source_line);
|
||||
if (!oe.source_func.empty()) {
|
||||
if (!oe.source_func.is_empty()) {
|
||||
source_txt += " @ " + oe.source_func + "()";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue