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:
@@ -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
|
||||
|
Reference in New Issue
Block a user