plasma: remove redundant Plasma::Animator::Animation::LastAnimation enum

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-04-16 23:31:47 +03:00
parent 8163991f03
commit 3f4425e9bb
2 changed files with 3 additions and 4 deletions

View file

@ -33,7 +33,7 @@ namespace Plasma
Plasma::Animation* Animator::create(Animator::Animation type, QObject *parent) Plasma::Animation* Animator::create(Animator::Animation type, QObject *parent)
{ {
Plasma::Animation *result = 0; Plasma::Animation *result = nullptr;
switch (type) { switch (type) {
case FadeAnimation: { case FadeAnimation: {

View file

@ -53,8 +53,7 @@ public:
SlideAnimation, /* Move the position of animated object */ SlideAnimation, /* Move the position of animated object */
GeometryAnimation, /* Geometry animation */ GeometryAnimation, /* Geometry animation */
ZoomAnimation, /* Zoom animation */ ZoomAnimation, /* Zoom animation */
PixmapTransitionAnimation, /* Transition between two pixmaps */ PixmapTransitionAnimation /* Transition between two pixmaps */
LastAnimation = 1024
}; };
/** /**
@ -62,7 +61,7 @@ public:
* check \ref AbstractAnimation properties. * check \ref AbstractAnimation properties.
* @since 4.4 * @since 4.4
**/ **/
static Plasma::Animation *create(Animator::Animation type, QObject *parent = 0); static Plasma::Animation *create(Animator::Animation type, QObject *parent = nullptr);
private: private:
Animator(); Animator();