Commit bc4d1cf1 authored by David Edmundson's avatar David Edmundson
Browse files

[libkwineffects] Fix minor compiler warnings

parent 2662d20d
......@@ -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)
......
......@@ -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;
......
Supports Markdown
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