summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialportinfo_win.cpp
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2015-07-12 14:59:57 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2015-07-16 09:35:45 +0000
commitfc1dc2d22781a46df2351848fa408eed96ccdd06 (patch)
treea2b0c4d902c95e51b3f40f6d3c7ba4bcc9ed93b4 /src/serialport/qserialportinfo_win.cpp
parente257bdc9aae5583b187bafb5e69e4a6143e3bf4e (diff)
Add missing QT_DEPRECATED_SINCE(5, 2) macro
The macro was added in the header file, but not in the implementation file. Change-Id: I51bc62eedbaba627fb525c04dc126bf0125e7a39 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialportinfo_win.cpp')
-rw-r--r--src/serialport/qserialportinfo_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/serialport/qserialportinfo_win.cpp b/src/serialport/qserialportinfo_win.cpp
index 493c4d08..f6d92280 100644
--- a/src/serialport/qserialportinfo_win.cpp
+++ b/src/serialport/qserialportinfo_win.cpp
@@ -365,6 +365,7 @@ bool QSerialPortInfo::isBusy() const
return false;
}
+#if QT_DEPRECATED_SINCE(5, 2)
bool QSerialPortInfo::isValid() const
{
const HANDLE handle = ::CreateFile(reinterpret_cast<const wchar_t*>(systemLocation().utf16()),
@@ -378,6 +379,7 @@ bool QSerialPortInfo::isValid() const
}
return true;
}
+#endif // QT_DEPRECATED_SINCE(5, 2)
QString QSerialPortInfoPrivate::portNameToSystemLocation(const QString &source)
{