From f880384018ee23efdc5cc072789e176208956a06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 16 Feb 2014 13:56:14 +0300 Subject: Remove useless casts with KeyEvent. --- src/gui/widgets/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/textbox.cpp') diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index 8130469b7..ecdc0e4d0 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -169,7 +169,7 @@ void TextBox::setTextWrapped(const std::string &text, const int minDimension) void TextBox::keyPressed(KeyEvent& keyEvent) { const gcn::Key &key = keyEvent.getKey(); - const int action = static_cast(&keyEvent)->getActionId(); + const int action = keyEvent.getActionId(); switch (action) { -- cgit v1.2.3-60-g2f50