QInputDeviceManager: ++explicit, ++out-of-line-dtors

It's private API, but exported, so de-inline the dtor to pin the
vtable in QtCore instead of potentially duplicating it in every plugin
that uses the class.

Change-Id: Ia948985bb94677c8453a8e7be27a14085303aaf5
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
Marc Mutz 2021-08-05 08:38:45 +02:00
parent 6336b5350b
commit 066dd1cdc0
2 changed files with 4 additions and 1 deletions

View File

@ -67,6 +67,8 @@ QInputDeviceManager::QInputDeviceManager(QObject *parent)
qRegisterMetaType<DeviceType>();
}
QInputDeviceManager::~QInputDeviceManager() = default;
int QInputDeviceManager::deviceCount(DeviceType type) const
{
Q_D(const QInputDeviceManager);

View File

@ -74,7 +74,8 @@ public:
NumDeviceTypes
};
QInputDeviceManager(QObject *parent = nullptr);
explicit QInputDeviceManager(QObject *parent = nullptr);
~QInputDeviceManager() override;
int deviceCount(DeviceType type) const;