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

@@ -32,7 +32,7 @@ class WebServer : public QObject {
Q_OBJECT
public:
WebServer (const QJsonDocument& config, const bool& useSsl, QObject * parent = 0);
WebServer (const QJsonDocument& config, bool useSsl, QObject * parent = 0);
~WebServer () override;
@@ -44,12 +44,12 @@ signals:
/// @emits whenever server is started or stopped (to sync with SSDPHandler)
/// @param newState True when started, false when stopped
///
void stateChange(const bool newState);
void stateChange(bool newState);
///
/// @brief Emits whenever the port changes (doesn't compare prev <> now)
///
void portChanged(const quint16& port);
void portChanged(quint16 port);
public slots:
///
@@ -57,7 +57,7 @@ public slots:
///
void initServer();
void onServerStopped (void);
void onServerStopped ();
void onServerStarted (quint16 port);
void onServerError (QString msg);
@@ -66,7 +66,7 @@ public slots:
/// @param type settingyType from enum
/// @param config configuration object
///
void handleSettingsUpdate(const settings::type& type, const QJsonDocument& config);
void handleSettingsUpdate(settings::type type, const QJsonDocument& config);
///
/// @brief Set a new description, if empty the description is NotFound for clients