Some code changed with Clang-Tidy
This commit is contained in:
parent
5c66771e3e
commit
4e5310cc60
175 changed files with 467 additions and 674 deletions
|
|
@ -812,7 +812,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
int sp = bp.find_last(":");
|
||||
if (sp == -1) {
|
||||
ERR_EXPLAIN("Invalid breakpoint: '" + bp + "', expected file:line format.");
|
||||
ERR_CONTINUE(sp == -1);
|
||||
ERR_CONTINUE(true);
|
||||
}
|
||||
|
||||
script_debugger->insert_breakpoint(bp.substr(sp + 1, bp.length()).to_int(), bp.substr(0, sp));
|
||||
|
|
@ -1469,7 +1469,7 @@ bool Main::start() {
|
|||
if (obj)
|
||||
memdelete(obj);
|
||||
ERR_EXPLAIN("Can't load script '" + script + "', it does not inherit from a MainLoop type");
|
||||
ERR_FAIL_COND_V(!script_loop, false);
|
||||
ERR_FAIL_V(false);
|
||||
}
|
||||
|
||||
script_loop->set_init_script(script_res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue