From d6f3b6a128df68705135b61a404fb4b878cc5e52 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Oct 2013 14:38:43 +0300 Subject: remove default parameter from guitable constructor. --- src/gui/widgets/guitable.h | 2 +- src/gui/widgets/tabs/setup_relations.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/guitable.h b/src/gui/widgets/guitable.h index c8f82d3cc..ffadbb0cd 100644 --- a/src/gui/widgets/guitable.h +++ b/src/gui/widgets/guitable.h @@ -56,7 +56,7 @@ class GuiTable final : public gcn::Widget, public: GuiTable(const Widget2 *const widget, - TableModel *const initial_model = nullptr, + TableModel *const initial_model, const bool opacity = true); A_DELETE_COPY(GuiTable) diff --git a/src/gui/widgets/tabs/setup_relations.cpp b/src/gui/widgets/tabs/setup_relations.cpp index 4e1bdb376..01fb873d4 100644 --- a/src/gui/widgets/tabs/setup_relations.cpp +++ b/src/gui/widgets/tabs/setup_relations.cpp @@ -247,7 +247,7 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : PlayerRelationsListener(), mPlayerTableTitleModel(new StaticTableModel(1, COLUMNS_NR)), mPlayerTableModel(new PlayerTableModel(this)), - mPlayerTable(new GuiTable(mPlayerTableModel)), + mPlayerTable(new GuiTable(this, mPlayerTableModel)), mPlayerTitleTable(new GuiTable(this, mPlayerTableTitleModel)), mPlayerScrollArea(new ScrollArea(mPlayerTable)), // TRANSLATORS: relation dialog button -- cgit v1.2.3-70-g09d2