Commit b8c0bf27 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EffectUser: Killing some signedness warnings.

parent 4676be87
......@@ -225,8 +225,10 @@ EffectUser::effects( Effect::Type type ) const
}
void
EffectUser::removeEffect( Effect::Type type, quint32 idx )
EffectUser::removeEffect( Effect::Type type, qint32 idx )
{
Q_ASSERT( idx >= 0 );
QWriteLocker lock( m_effectsLock );
if ( type == Effect::Filter )
......@@ -269,16 +271,18 @@ EffectUser::removeEffect(EffectHelper *helper)
}
void
EffectUser::swapFilters( quint32 idx, quint32 idx2 )
EffectUser::swapFilters( qint32 idx, qint32 idx2 )
{
if ( idx >= m_filters.size() || idx2 > m_filters.size() )
Q_ASSERT( idx >= 0 && idx2 >= 0 );
if ( idx >= m_filters.size() || idx2 >= m_filters.size() )
return ;
QWriteLocker lock( m_effectsLock );
m_filters.swap( idx, idx2 );
}
quint32
qint32
EffectUser::count( Effect::Type type ) const
{
QReadLocker lock( m_effectsLock );
......
......@@ -47,9 +47,9 @@ class EffectUser : public QObject
void moveEffect( EffectHelper *helper, qint64 newPos );
void removeEffect( EffectHelper *helper );
const EffectsEngine::EffectList &effects( Effect::Type type ) const;
void removeEffect( Effect::Type type, quint32 idx );
void swapFilters( quint32 idx, quint32 idx2 );
quint32 count( Effect::Type type ) const;
void removeEffect( Effect::Type type, qint32 idx );
void swapFilters( qint32 idx, qint32 idx2 );
qint32 count( Effect::Type type ) const;
void cleanEffects();
protected:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment