Use aggregate initializer form for defaults

This commit is contained in:
Allan Bazinet
2024-11-04 06:44:57 -08:00
parent deca2138c7
commit b716c8413b
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ public:
// Constructors
Message();
Message(QString const & type, QString const & value="");
Message(QString const & type, QString const & value = {});
Message(QString const & type, QString const & value, QVariantMap const & params);
// Copying and moving

View File

@@ -34,7 +34,7 @@ public:
// initiate a new server host lookup or is the server name is empty
// the sending of messages is disabled
Q_SLOT void set_server_name (QString const& server_name = QString {});
Q_SLOT void set_server_name (QString const& server_name = {});
// change the server port messages are sent to
Q_SLOT void set_server_port (quint16 server_port = 0u);