summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialportinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialport/qserialportinfo.cpp')
-rw-r--r--src/serialport/qserialportinfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/serialport/qserialportinfo.cpp b/src/serialport/qserialportinfo.cpp
index d823eac7..f27368d7 100644
--- a/src/serialport/qserialportinfo.cpp
+++ b/src/serialport/qserialportinfo.cpp
@@ -46,6 +46,12 @@
QT_BEGIN_NAMESPACE
+// We changed from QScopedPointer to std::unique_ptr, make sure it's
+// binary compatible. The QScopedPointer had a non-default deleter, but
+// the deleter just provides a static function to use for deletion so we don't
+// include it in this template definition (the deleter-class was deleted).
+static_assert(sizeof(std::unique_ptr<QSerialPortInfoPrivate>)
+ == sizeof(QScopedPointer<QSerialPortInfoPrivate>));
/*!
\class QSerialPortInfo