mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Pass primitive types by value (#935)
This commit is contained in:
@@ -290,7 +290,7 @@ void JsonConnection::clearAll()
|
||||
parseReply(reply);
|
||||
}
|
||||
|
||||
void JsonConnection::setComponentState(const QString & component, const bool state)
|
||||
void JsonConnection::setComponentState(const QString & component, bool state)
|
||||
{
|
||||
qDebug() << (state ? "Enable" : "Disable") << "Component" << component;
|
||||
|
||||
@@ -517,7 +517,7 @@ void JsonConnection::setToken(const QString &token)
|
||||
parseReply(reply);
|
||||
}
|
||||
|
||||
void JsonConnection::setInstance(const int &instance)
|
||||
void JsonConnection::setInstance(int instance)
|
||||
{
|
||||
// create command
|
||||
QJsonObject command;
|
||||
|
||||
Reference in New Issue
Block a user