From 402add831708ccf4a50c31d10f8118c9497a6485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 24 Oct 2018 17:00:28 -0300 Subject: [PATCH] comm: Avoid QString initialization of empty string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/comm/BluetoothLink.cc | 2 +- src/comm/TCPLink.cc | 2 +- src/comm/UDPLink.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comm/BluetoothLink.cc b/src/comm/BluetoothLink.cc index e6606987f..cca76cd64 100644 --- a/src/comm/BluetoothLink.cc +++ b/src/comm/BluetoothLink.cc @@ -390,7 +390,7 @@ void BluetoothConfiguration::setDevName(const QString &name) QString BluetoothConfiguration::address() { #ifdef __ios__ - return QString(""); + return {}; #else return _device.address; #endif diff --git a/src/comm/TCPLink.cc b/src/comm/TCPLink.cc index d91cdb145..76b3eb51e 100644 --- a/src/comm/TCPLink.cc +++ b/src/comm/TCPLink.cc @@ -263,7 +263,7 @@ static QString get_ip_address(const QString& address) } } } - return QString(""); + return {}; } TCPConfiguration::TCPConfiguration(const QString& name) : LinkConfiguration(name) diff --git a/src/comm/UDPLink.cc b/src/comm/UDPLink.cc index ff42b07f7..20a13e769 100644 --- a/src/comm/UDPLink.cc +++ b/src/comm/UDPLink.cc @@ -65,7 +65,7 @@ static QString get_ip_address(const QString& address) } } } - return QString(""); + return {}; } static bool contains_target(const QList list, const QHostAddress& address, quint16 port) -- 2.22.0