From 7ca78168dfcfe879f21e99a8a595a8ac82e7d7fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 May 2013 20:25:53 +0300 Subject: Improve worldselectdialog. --- src/gui/worldselectdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/worldselectdialog.cpp b/src/gui/worldselectdialog.cpp index 8fe05e2e6..e8ed35ab2 100644 --- a/src/gui/worldselectdialog.cpp +++ b/src/gui/worldselectdialog.cpp @@ -59,12 +59,12 @@ class WorldListModel final : public gcn::ListModel virtual ~WorldListModel() { } - int getNumberOfElements() + int getNumberOfElements() override { return static_cast(mWorlds.size()); } - std::string getElementAt(int i) + std::string getElementAt(int i) override { const WorldInfo *const si = mWorlds[i]; if (si) -- cgit v1.2.3-70-g09d2