From aa446903000d468e93ce92ca1176f8886edb17d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 9 May 2019 13:13:55 -0300 Subject: [PATCH] QGCSerialPortInfo: Add const in canFlash function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/comm/QGCSerialPortInfo.cc | 2 +- src/comm/QGCSerialPortInfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/comm/QGCSerialPortInfo.cc b/src/comm/QGCSerialPortInfo.cc index 1818835..eff879c 100644 --- a/src/comm/QGCSerialPortInfo.cc +++ b/src/comm/QGCSerialPortInfo.cc @@ -340,7 +340,7 @@ bool QGCSerialPortInfo::isSystemPort(QSerialPortInfo* port) return false; } -bool QGCSerialPortInfo::canFlash(void) +bool QGCSerialPortInfo::canFlash(void) const { BoardType_t boardType; QString name; diff --git a/src/comm/QGCSerialPortInfo.h b/src/comm/QGCSerialPortInfo.h index 7c394bc..3accd3d 100644 --- a/src/comm/QGCSerialPortInfo.h +++ b/src/comm/QGCSerialPortInfo.h @@ -43,7 +43,7 @@ public: bool getBoardInfo(BoardType_t& boardType, QString& name) const; /// @return true: we can flash this board type - bool canFlash(void); + bool canFlash(void) const; /// @return true: Board is currently in bootloader bool isBootloader(void) const;