mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-17 06:12:14 +02:00
cleanups
This commit is contained in:
parent
d2b7e5c4eb
commit
937959c1c1
1 changed files with 2 additions and 8 deletions
|
@ -275,10 +275,7 @@ QString EntityActionInterface::extractStringArgument(QString objectName, QVarian
|
|||
ok = false;
|
||||
return "";
|
||||
}
|
||||
|
||||
QVariant vV = arguments[argumentName];
|
||||
QString v = vV.toString();
|
||||
return v;
|
||||
return arguments[argumentName].toString();
|
||||
}
|
||||
|
||||
bool EntityActionInterface::extractBooleanArgument(QString objectName, QVariantMap arguments,
|
||||
|
@ -290,10 +287,7 @@ bool EntityActionInterface::extractBooleanArgument(QString objectName, QVariantM
|
|||
ok = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
QVariant vV = arguments[argumentName];
|
||||
bool v = vV.toBool();
|
||||
return v;
|
||||
return arguments[argumentName].toBool();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue