pedantic compiler flags fixed

This commit is contained in:
Uwe Rathmann 2023-04-04 09:27:02 +02:00
parent 658bc71891
commit 084eae3dbc
4 changed files with 21 additions and 15 deletions

View File

@ -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;

View File

@ -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 )
{

View File

@ -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 )
{

View File

@ -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() )