Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build errors from deprecated QVariant::type()
/build/source/src/platforms/linux/daemon/apptracker.cpp: In member function 'void AppTracker::userCreated(uint, const QString&)': /build/source/src/platforms/linux/daemon/apptracker.cpp:73:42: error: 'QVariant::Type QVariant::type() const' is deprecated: Use typeId() or metaType(). [-Werror=deprecated-declarations] 73 | if (!m_cgroupMount.isEmpty() && qv.type() == QVariant::String) { | ~~~~~~~^~ In file included from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtDBus/qtdbusglobal.h:9, from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtDBus/qdbusconnection.h:8, from /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtDBus/QDBusConnection:1, from /build/source/src/platforms/linux/daemon/apptracker.cpp:9: /nix/store/bgfalfi93kbn8j1wfwz0x0dnk1wx9wdp-qtbase-6.8.0/include/QtCore/qvariant.h:433:10: note: declared here 433 | Type type() const | ^~~~ Signed-off-by: Anders Kaseorg <andersk@mit.edu>
- Loading branch information