summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-21 21:29:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-21 21:29:51 +0300
commitf3a89322713a379678abc420d75230a9b17aa18f (patch)
tree1fa4318ba77eeef61272eb6cd982c7bf37b82800 /src/gui/chatwindow.cpp
parent552867509d2a29d806d2ba416b24fbf7ac711803 (diff)
downloadmv-f3a89322713a379678abc420d75230a9b17aa18f.tar.gz
mv-f3a89322713a379678abc420d75230a9b17aa18f.tar.bz2
mv-f3a89322713a379678abc420d75230a9b17aa18f.tar.xz
mv-f3a89322713a379678abc420d75230a9b17aa18f.zip
fix code style.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 05595fe89..1cb0a225d 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -77,10 +77,9 @@
class ChatInput final : public TextField
{
public:
- ChatInput(ChatWindow *const window, TabbedArea *const tabs):
+ explicit ChatInput(ChatWindow *const window):
TextField(window, "", false),
mWindow(window),
- mChatTabs(tabs),
mFocusGaining(false)
{
setVisible(false);
@@ -131,7 +130,6 @@ class ChatInput final : public TextField
private:
ChatWindow *mWindow;
- TabbedArea *mChatTabs;
bool mFocusGaining;
};
@@ -196,7 +194,7 @@ ChatWindow::ChatWindow():
gcn::KeyListener(),
mItemLinkHandler(new ItemLinkHandler),
mChatTabs(new TabbedArea(this)),
- mChatInput(new ChatInput(this, mChatTabs)),
+ mChatInput(new ChatInput(this)),
mRainbowColor(0),
mWhispers(),
mHistory(),