Pass primitive types by value (#935)

This commit is contained in:
Murat Seker
2020-08-08 13:09:15 +02:00
committed by GitHub
parent 5758b19cbc
commit c00d8e62fb
146 changed files with 505 additions and 505 deletions

View File

@@ -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;

View File

@@ -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: