summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialport_wince.cpp
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-03-23 16:18:01 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-24 09:36:33 +0100
commit726571882cd9848c081c6c83c36f2b296d359b1b (patch)
treef93c4e37d60bf0999c300bb97492323f52dd6c8d /src/serialport/qserialport_wince.cpp
parent89acd52d6daea28415dfc313c0c25706ae356f29 (diff)
Make a good use of the new "override" C++11 specifier when available
The usage of the specifier helps to catch mistakes in general and also explicitly shows the intention. Furthermore, leave the "virtual" specifier out as per Qt Coding Style: http://qt-project.org/wiki/Qt_Coding_Style#fe675674b70cdaca505f3cff0244fbae It does not make much sense in general with the override specifier either anyhow. Note: an empty define is still necessary as long as QtSerialPort supports Qt4 which is the current situation. Change-Id: Iedf01071e6303d88305c140f4a767bb43059f593 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/serialport/qserialport_wince.cpp')
-rw-r--r--src/serialport/qserialport_wince.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_wince.cpp b/src/serialport/qserialport_wince.cpp
index 1c5c8909..89fd5923 100644
--- a/src/serialport/qserialport_wince.cpp
+++ b/src/serialport/qserialport_wince.cpp
@@ -72,7 +72,7 @@ public:
}
protected:
- virtual void run() {
+ void run() Q_DECL_OVERRIDE {
DWORD mask = 0;
while (running) {
if (::WaitCommEvent(dptr->descriptor, &mask, FALSE)) {