From 8b4a3854b2c1c6cc0ad05dbe9af1c06056a96e3f Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 24 Feb 2014 10:46:09 -0800 Subject: [PATCH] Missing const --- src/comm/SerialLink.cc | 2 +- src/comm/TCPLink.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm/SerialLink.cc b/src/comm/SerialLink.cc index 57699d0..dc1b627 100644 --- a/src/comm/SerialLink.cc +++ b/src/comm/SerialLink.cc @@ -27,7 +27,7 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl, m_reqReset(false) { // We use QSerialPort::SerialPortError in a signal so we must declare it as a meta type - static int idMetaType = qRegisterMetaType(); + static const int idMetaType = qRegisterMetaType(); Q_UNUSED(idMetaType); // Get the name of the current port in use. diff --git a/src/comm/TCPLink.cc b/src/comm/TCPLink.cc index 8ae8d25..e731fc3 100644 --- a/src/comm/TCPLink.cc +++ b/src/comm/TCPLink.cc @@ -46,7 +46,7 @@ TCPLink::TCPLink(QHostAddress hostAddress, quint16 socketPort) : // Even though QAbstractSocket::SocketError is used in a signal by Qt, Qt doesn't declare it as a meta type. // This in turn causes debug output to be kicked out about not being able to queue the signal. We register it // as a meta type to silence that. - static int idMetaType = qRegisterMetaType(); + static const int idMetaType = qRegisterMetaType(); Q_UNUSED(idMetaType); _linkId = getNextLinkId();