Fix compatibility with Qt 6.7.

This commit is contained in:
Roman Telezhynskyi 2024-04-15 15:48:15 +03:00
parent d7be594820
commit 96465460bd
2 changed files with 3 additions and 1 deletions

View File

@ -99,7 +99,7 @@ auto VAbstractCurve::operator=(const VAbstractCurve &curve) -> VAbstractCurve &
//---------------------------------------------------------------------------------------------------------------------
VAbstractCurve::VAbstractCurve(VAbstractCurve &&curve) noexcept
: VGObject(std::move(curve)),
d(std::move(curve.d)) // NOLINT(bugprone-use-after-move)
d(std::move(curve.d))
{
}

View File

@ -123,6 +123,8 @@ private:
QT_WARNING_POP
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
Q_DECLARE_TYPEINFO(VAbstractCurve, Q_MOVABLE_TYPE); // NOLINT
#endif
#endif // VABSTRACTCURVE_H