QPropertyObserver: mark as noexcecpt

Change-Id: I2df75b35e42fa923c6cbf71a15569dc37140ee55
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Fabian Kosmale 2020-10-11 11:06:42 +02:00
parent f2f5e962b6
commit ed460ba7e2
2 changed files with 4 additions and 4 deletions

View File

@ -380,7 +380,7 @@ QPropertyObserver::~QPropertyObserver()
d.unlink();
}
QPropertyObserver::QPropertyObserver(QPropertyObserver &&other)
QPropertyObserver::QPropertyObserver(QPropertyObserver &&other) noexcept
{
bindingToMarkDirty = std::exchange(other.bindingToMarkDirty, {});
next = std::exchange(other.next, {});
@ -393,7 +393,7 @@ QPropertyObserver::QPropertyObserver(QPropertyObserver &&other)
*nodeState = this;
}
QPropertyObserver &QPropertyObserver::operator=(QPropertyObserver &&other)
QPropertyObserver &QPropertyObserver::operator=(QPropertyObserver &&other) noexcept
{
if (this == &other)
return *this;

View File

@ -229,8 +229,8 @@ public:
};
constexpr QPropertyObserver() = default;
QPropertyObserver(QPropertyObserver &&other);
QPropertyObserver &operator=(QPropertyObserver &&other);
QPropertyObserver(QPropertyObserver &&other) noexcept;
QPropertyObserver &operator=(QPropertyObserver &&other) noexcept;
~QPropertyObserver();
template<typename Property, typename = typename Property::InheritsQUntypedPropertyData>