From b1d753d7a6403d89acfa1319971930686a221466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Tue, 1 Jan 2019 14:49:51 +0100 Subject: [PATCH] Cast to AbstractClient instead of Client in Toplevel::setReadyForPainting Summary: TabGroup is nowadays in AbstractClient so the cast to Client is incorrect. Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17898 --- toplevel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toplevel.cpp b/toplevel.cpp index 9605e6a99b..754b273194 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -262,7 +262,7 @@ void Toplevel::setReadyForPainting() if (compositing()) { addRepaintFull(); emit windowShown(this); - if (Client *cl = dynamic_cast(this)) { + if (auto *cl = dynamic_cast(this)) { if (cl->tabGroup() && cl->tabGroup()->current() == cl) cl->tabGroup()->setCurrent(cl, true); }