pedantic compiler flags fixed
This commit is contained in:
parent
658bc71891
commit
084eae3dbc
@ -152,7 +152,7 @@ QMetaMethod qskNotifySignal( const QMetaObject* metaObject, const char* property
|
||||
|
||||
static void qskInvokeMetaCall(
|
||||
QObject* object, const QMetaObject* metaObject,
|
||||
QMetaObject::Call call, int offset, int index, void* argv[],
|
||||
QMetaObject::Call call, ushort offset, ushort index, void* argv[],
|
||||
Qt::ConnectionType connectionType )
|
||||
{
|
||||
QPointer< QObject > receiver( object );
|
||||
@ -196,6 +196,7 @@ static void qskInvokeMetaCall(
|
||||
|
||||
QSemaphore semaphore;
|
||||
|
||||
Q_ASSERT( metaObject == nullptr || receiver->metaObject() == metaObject );
|
||||
qskInvokeMetaCallQueued( receiver, call,
|
||||
offset, index, argv, &semaphore );
|
||||
|
||||
@ -256,6 +257,7 @@ static void qskInvokeMetaCall(
|
||||
return;
|
||||
}
|
||||
|
||||
Q_ASSERT( metaObject == nullptr || receiver->metaObject() == metaObject );
|
||||
qskInvokeMetaCallQueued( object, call, offset, index, arguments, nullptr );
|
||||
|
||||
break;
|
||||
|
@ -382,7 +382,7 @@ bool QskPopup::hasFaderEffect() const
|
||||
|
||||
void QskPopup::setPopupFlags( PopupFlags flags )
|
||||
{
|
||||
const auto newFlags = static_cast< int >( m_data->flags );
|
||||
const auto newFlags = static_cast< int >( flags );
|
||||
|
||||
if ( newFlags != m_data->flags )
|
||||
{
|
||||
|
@ -234,11 +234,11 @@ namespace
|
||||
|
||||
void removeFactory( const QString& factoryId )
|
||||
{
|
||||
const auto it = m_factoryMap.find( factoryId );
|
||||
if ( it == m_factoryMap.end() )
|
||||
const auto itFactory = m_factoryMap.find( factoryId );
|
||||
if ( itFactory == m_factoryMap.end() )
|
||||
return;
|
||||
|
||||
m_factoryMap.erase( it );
|
||||
m_factoryMap.erase( itFactory );
|
||||
|
||||
if ( m_isValid )
|
||||
{
|
||||
|
@ -753,10 +753,12 @@ QskColorFilter QskSkinnable::effectiveGraphicFilter(
|
||||
aspect.setSection( QskAspect::Body );
|
||||
aspect.setVariation( QskAspect::NoVariation );
|
||||
|
||||
const auto v = animatedHint( aspect, nullptr );
|
||||
{
|
||||
const auto v = animatedHint( aspect, nullptr );
|
||||
|
||||
if ( v.canConvert< QskColorFilter >() )
|
||||
return v.value< QskColorFilter >();
|
||||
if ( v.canConvert< QskColorFilter >() )
|
||||
return v.value< QskColorFilter >();
|
||||
}
|
||||
|
||||
if ( auto control = owningControl() )
|
||||
{
|
||||
@ -816,16 +818,18 @@ QskAnimationHint QskSkinnable::effectiveAnimation(
|
||||
|
||||
QskAnimationHint hint;
|
||||
|
||||
const auto a = m_data->hintTable.resolvedAnimator( aspect, hint );
|
||||
if ( a.isAnimator() )
|
||||
{
|
||||
if ( status )
|
||||
const auto a = m_data->hintTable.resolvedAnimator( aspect, hint );
|
||||
if ( a.isAnimator() )
|
||||
{
|
||||
status->source = QskSkinHintStatus::Skinnable;
|
||||
status->aspect = a;
|
||||
}
|
||||
if ( status )
|
||||
{
|
||||
status->source = QskSkinHintStatus::Skinnable;
|
||||
status->aspect = a;
|
||||
}
|
||||
|
||||
return hint;
|
||||
return hint;
|
||||
}
|
||||
}
|
||||
|
||||
if ( auto skin = effectiveSkin() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user