mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 10:59:20 +02:00
refactor(sonar): remove empty statements, one declaration per statement (cpp:S1116, cpp:S1659)
This commit is contained in:
@@ -178,7 +178,8 @@ void render_task::run()
|
||||
for (const auto &cmd : commands)
|
||||
{
|
||||
std::string baseCmd;
|
||||
int p1 = 0, p2 = 0;
|
||||
int p1 = 0;
|
||||
int p2 = 0;
|
||||
|
||||
size_t pos1 = cmd.find(';');
|
||||
if (pos1 == std::string::npos)
|
||||
@@ -636,7 +637,9 @@ void python_taskqueue::error()
|
||||
else
|
||||
{
|
||||
// nie dziala buffor pythona
|
||||
PyObject *type, *value, *traceback;
|
||||
PyObject *type;
|
||||
PyObject *value;
|
||||
PyObject *traceback;
|
||||
PyErr_Fetch(&type, &value, &traceback);
|
||||
if (type == nullptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user