Git commit 240bc02aa40709d64bdb845edc1a3e4339b7f135 by David Edmundson.
Committed on 31/07/2018 at 21:04.
Pushed by davidedmundson into branch 'scripting2'.
asfaf
M +0 -3 scripting/scriptedeffect.cpp
M +1 -0 scripting/scriptedeffect.h
https://commits.kde.org/kwin/240bc02aa40709d64bdb845edc1a3e4339b7f135
diff --git a/scripting/scriptedeffect.cpp b/scripting/scriptedeffect.cpp
index c6db01203..6e0803f14 100644
--- a/scripting/scriptedeffect.cpp
+++ b/scripting/scriptedeffect.cpp
@@ -33,9 +33,7 @@ along with this program. If not, see .
// Qt
#include
#include
-#include
#include
-//#include
=
typedef KWin::EffectWindow* KEffectWindowRef;
=
@@ -404,7 +402,6 @@ QJSValue ScriptedEffect::startAnimation(const QJSValue =
&object, bool settingPers
return createError(QStringLiteral("No animations provided"));
}
=
-
QJSValue array =3D m_engine->newArray(settings.length());
for (int i =3D 0 ; i < settings.count() ; i++) {
const AnimationSettings &setting =3D settings[i];
diff --git a/scripting/scriptedeffect.h b/scripting/scriptedeffect.h
index 1a98f502f..7bfc869b7 100644
--- a/scripting/scriptedeffect.h
+++ b/scripting/scriptedeffect.h
@@ -3,6 +3,7 @@
This file is part of the KDE project.
=
Copyright (C) 2012 Martin Gr=C3=A4=C3=9Flin
+ Copyright (C) 2018 David Edmundson
=
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by