[libkwineffects] Fix minor compiler warnings

This commit is contained in:
David Edmundson 2022-05-30 19:37:03 +01:00
parent 2662d20da1
commit bc4d1cf129
2 changed files with 3 additions and 4 deletions

View file

@ -50,8 +50,8 @@ AniData::AniData()
: attribute(AnimationEffect::Opacity)
, customCurve(0) // Linear
, meta(0)
, startTime(0)
, frozenTime(-1)
, startTime(0)
, waitAtSource(false)
, keepAlive(true)
{
@ -65,8 +65,8 @@ AniData::AniData(AnimationEffect::Attribute a, int meta_, const FPx2 &to_,
, from(from_)
, to(to_)
, meta(meta_)
, startTime(AnimationEffect::clock() + delay)
, frozenTime(-1)
, startTime(AnimationEffect::clock() + delay)
, fullScreenEffectLock(std::move(fullScreenEffectLock_))
, waitAtSource(waitAtSource_)
, keepAlive(keepAlive)

View file

@ -48,7 +48,6 @@ quint64 AnimationEffectPrivate::m_animCounter = 0;
AnimationEffect::AnimationEffect()
: d_ptr(new AnimationEffectPrivate())
{
Q_D(AnimationEffect);
if (!s_clock.isValid()) {
s_clock.start();
}
@ -667,7 +666,7 @@ void AnimationEffect::postPaintScreen()
bool invalidateLayerRect = false;
int animCounter = 0;
for (auto anim = entry->first.begin(); anim != entry->first.end();) {
if (anim->isActive() || anim->startTime > clock() && !anim->waitAtSource) {
if (anim->isActive() || (anim->startTime > clock() && !anim->waitAtSource)) {
++anim;
++animCounter;
continue;