Fix compile with strict iterator
This commit is contained in:
parent
585ef3c19f
commit
98b843e51f
1 changed files with 2 additions and 2 deletions
|
@ -224,7 +224,7 @@ void AnimationEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& data,
|
||||||
{
|
{
|
||||||
Q_D(AnimationEffect);
|
Q_D(AnimationEffect);
|
||||||
if ( d->m_animated ) {
|
if ( d->m_animated ) {
|
||||||
AniMap::const_iterator entry = d->m_animations.find( w );
|
AniMap::const_iterator entry = d->m_animations.constFind( w );
|
||||||
if ( entry != d->m_animations.constEnd() ) {
|
if ( entry != d->m_animations.constEnd() ) {
|
||||||
bool isUsed = false;
|
bool isUsed = false;
|
||||||
for (QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim) {
|
for (QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim) {
|
||||||
|
@ -286,7 +286,7 @@ void AnimationEffect::paintWindow( EffectWindow* w, int mask, QRegion region, Wi
|
||||||
{
|
{
|
||||||
Q_D(AnimationEffect);
|
Q_D(AnimationEffect);
|
||||||
if ( d->m_animated ) {
|
if ( d->m_animated ) {
|
||||||
AniMap::const_iterator entry = d->m_animations.find( w );
|
AniMap::const_iterator entry = d->m_animations.constFind( w );
|
||||||
if ( entry != d->m_animations.constEnd() ) {
|
if ( entry != d->m_animations.constEnd() ) {
|
||||||
for ( QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim ) {
|
for ( QList<AniData>::const_iterator anim = entry->constBegin(); anim != entry->constEnd(); ++anim ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue