Skip to content

Commit

Permalink
Apply Guichan's changes from 7e9f0de6ae4026a9b44cec457a91eb68e2031b83…
Browse files Browse the repository at this point in the history
… (May 17th 2009)

Removed unnecessary variable
Jarod42 committed Sep 18, 2024
1 parent 53d454c commit 657dd0d
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Continue rebasing from 3437d59c7393d5fafe151582d285b3665399a7b7
* Continue rebasing from 0650ac153814784b1bad6c4bf68867dd079b5640
* Add a focus listener interface.
* Make focus apply synchronously.
* Graphics and input objects for DirectX.
5 changes: 1 addition & 4 deletions src/widgets/tabbedarea.cpp
Original file line number Diff line number Diff line change
@@ -480,10 +480,7 @@ namespace gcn

void TabbedArea::death(const Event& event)
{
Widget* source = event.getSource();
Tab* tab = dynamic_cast<Tab*>(source);

if (tab != NULL)
if (Tab* tab = dynamic_cast<Tab*>(event.getSource()))
{
removeTab(tab);
}

0 comments on commit 657dd0d

Please sign in to comment.