Remove nodiscard in QPropertyObserverNodeProtector ctor
Produced error in my GCC 7.5 on Ubuntu 18: error: ‘nodiscard’ attribute applied to ‘QPropertyObserverNodeProtector<<anonymous> >::QPropertyObserverNodeProtector(QPropertyObserver*&)’ with void return type [-Werror=attributes] Q_REQUIRED_RESULT QPropertyObserverNodeProtector(QPropertyObserver *&observer) Change-Id: Ic1f6c4f502bb4d5c764686d5521b92f655592bb2 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
705837771c
commit
1ae15edd7e
@ -461,7 +461,7 @@ struct [[nodiscard]] QPropertyObserverNodeProtector {
|
||||
QPropertyBindingPrivate *m_binding;
|
||||
QPropertyObserver::ChangeHandler m_changeHandler;
|
||||
};
|
||||
Q_REQUIRED_RESULT QPropertyObserverNodeProtector(QPropertyObserver *&observer)
|
||||
QPropertyObserverNodeProtector(QPropertyObserver *&observer)
|
||||
: m_observer(observer)
|
||||
{
|
||||
static_assert(tag == QPropertyObserver::ObserverNotifiesBinding ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user