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;
|
||||
|
@@ -111,7 +111,7 @@ public:
|
||||
/// @param component The component [SMOOTHING, BLACKBORDER, FORWARDER, BOBLIGHT_SERVER, GRABBER]
|
||||
/// @param state The state of the component [true | false]
|
||||
///
|
||||
void setComponentState(const QString & component, const bool state);
|
||||
void setComponentState(const QString & component, bool state);
|
||||
|
||||
///
|
||||
/// Set current active priority channel and deactivate auto source switching
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
/// Send a json message with a specific instance id
|
||||
/// @param instance The instance id
|
||||
///
|
||||
void setInstance(const int &instance);
|
||||
void setInstance(int instance);
|
||||
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user