From c430b75e370a21a17f80d4ba3acd84111828a462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Sep 2013 20:08:44 +0300 Subject: add const for methods return values. --- src/gui/quitdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/quitdialog.cpp') diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp index da67231d5..b601fe323 100644 --- a/src/gui/quitdialog.cpp +++ b/src/gui/quitdialog.cpp @@ -151,7 +151,7 @@ void QuitDialog::action(const gcn::ActionEvent &event) { if (viewport) { - const Map *const map = viewport->getCurrentMap(); + const Map *const map = viewport->getMap(); if (map) map->saveExtraLayer(); } -- cgit v1.2.3-70-g09d2