Core/Misc: Multiple static analysis issues fixed (small optimizations and clear code)
This commit is contained in:
1 parent
e6b7de8c97
commit
cefcde9ba9
40 files changed
+72
-84
No files matched your search
@@ -192,9 +192,7 @@ bool RASession::ProcessCommand(std::string& command)
|
||||
}
|
||||
|
||||
// Obtain a new promise per command
|
||||
if (_commandExecuting != nullptr)
|
||||
delete _commandExecuting;
|
||||
|
||||
delete _commandExecuting;
|
||||
_commandExecuting = new std::promise<void>();
|
||||
|
||||
CliCommandHolder* cmd = new CliCommandHolder(this, command.c_str(), &RASession::CommandPrint, &RASession::CommandFinished);
|
||||
|
||||
Reference in new issue
Block a user