From bf93372ca26375e392ff62a91db4de4c126dff38 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 22 Nov 2009 13:22:53 +0000 Subject: (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. --- src/network/network_content_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/network/network_content_gui.cpp') diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index dc24eaee3..2953ba468 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -439,9 +439,9 @@ public: void DrawMatrix(const Rect &r) const { - const NWidgetCore *nwi_checkbox = this->GetWidget(NCLWW_CHECKBOX); - const NWidgetCore *nwi_name = this->GetWidget(NCLWW_NAME); - const NWidgetCore *nwi_type = this->GetWidget(NCLWW_TYPE); + const NWidgetBase *nwi_checkbox = this->GetWidget(NCLWW_CHECKBOX); + const NWidgetBase *nwi_name = this->GetWidget(NCLWW_NAME); + const NWidgetBase *nwi_type = this->GetWidget(NCLWW_TYPE); /* Fill the matrix with the information */ @@ -608,7 +608,7 @@ public: this->selected = *this->content.Get(id_v); this->list_pos = id_v; - if (pt.x <= (int)(this->GetWidget(NCLWW_CHECKBOX)->pos_y + this->GetWidget(NCLWW_CHECKBOX)->current_y)) { + if (pt.x <= (int)(this->GetWidget(NCLWW_CHECKBOX)->pos_y + this->GetWidget(NCLWW_CHECKBOX)->current_y)) { _network_content_client.ToggleSelectedState(this->selected); this->content.ForceResort(); } -- cgit v1.2.3-70-g09d2