QProperty: Apply coding style and avoid warnings
Change-Id: I14efdb293a4be39b3849b34bd8013fdab016ce7e Reviewed-by: Simon Hausmann <hausmann@gmail.com>
This commit is contained in:
parent
3768a915bc
commit
36bd34dbdc
@ -319,7 +319,7 @@ void QPropertyObserverPointer::setBindingToMarkDirty(QPropertyBindingPrivate *bi
|
||||
void QPropertyObserverPointer::notify(QPropertyBindingPrivate *triggeringBinding, void *propertyDataPtr)
|
||||
{
|
||||
bool knownIfPropertyChanged = false;
|
||||
bool propertyChanged =true;
|
||||
bool propertyChanged = true;
|
||||
|
||||
auto observer = const_cast<QPropertyObserver*>(ptr);
|
||||
while (observer) {
|
||||
|
@ -222,11 +222,11 @@ void tst_QProperty::avoidDependencyAllocationAfterFirstEval()
|
||||
QCOMPARE(propWithBinding.value(), int(11));
|
||||
|
||||
QVERIFY(QPropertyBasePointer::get(propWithBinding).bindingPtr());
|
||||
QCOMPARE(QPropertyBasePointer::get(propWithBinding).bindingPtr()->dependencyObserverCount, 2);
|
||||
QCOMPARE(QPropertyBasePointer::get(propWithBinding).bindingPtr()->dependencyObserverCount, 2u);
|
||||
|
||||
firstDependency = 100;
|
||||
QCOMPARE(propWithBinding.value(), int(110));
|
||||
QCOMPARE(QPropertyBasePointer::get(propWithBinding).bindingPtr()->dependencyObserverCount, 2);
|
||||
QCOMPARE(QPropertyBasePointer::get(propWithBinding).bindingPtr()->dependencyObserverCount, 2u);
|
||||
}
|
||||
|
||||
void tst_QProperty::propertyArrays()
|
||||
|
Loading…
Reference in New Issue
Block a user