Drop no longer needed dynamic_casts from TabBox
This commit is contained in:
parent
7d5236cac8
commit
704b255234
1 changed files with 2 additions and 2 deletions
|
@ -1249,7 +1249,7 @@ void TabBox::KDEOneStepThroughWindows(bool forward, TabBoxMode mode)
|
||||||
setMode(mode);
|
setMode(mode);
|
||||||
reset();
|
reset();
|
||||||
nextPrev(forward);
|
nextPrev(forward);
|
||||||
if (Client* c = dynamic_cast<Client*>(currentClient())) {
|
if (AbstractClient* c = currentClient()) {
|
||||||
Workspace::self()->activateClient(c);
|
Workspace::self()->activateClient(c);
|
||||||
shadeActivate(c);
|
shadeActivate(c);
|
||||||
}
|
}
|
||||||
|
@ -1439,7 +1439,7 @@ void TabBox::close(bool abort)
|
||||||
|
|
||||||
void TabBox::accept()
|
void TabBox::accept()
|
||||||
{
|
{
|
||||||
Client* c = dynamic_cast<Client*>(currentClient());
|
AbstractClient *c = currentClient();
|
||||||
close();
|
close();
|
||||||
if (c) {
|
if (c) {
|
||||||
Workspace::self()->activateClient(c);
|
Workspace::self()->activateClient(c);
|
||||||
|
|
Loading…
Reference in a new issue