From 16dbfff895f4aa98c46ae3cffd9ca6689c8f73d4 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Sat, 28 Jul 2012 16:34:42 +0000 Subject: [PATCH] Remove a useless cast. Detected by the upcoming gcc-4.8. --- src/dialogs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs.cpp b/src/dialogs.cpp index 1de4da62204..6a09c0dc80b 100644 --- a/src/dialogs.cpp +++ b/src/dialogs.cpp @@ -413,7 +413,7 @@ void save_preview_pane::draw_contents() map_surf = image::getMinimap(minimap_size, minimap_size, *map_); if(map_surf != NULL) { - map_cache_.insert(std::pair(map_data,surface(map_surf))); + map_cache_.insert(std::pair(map_data, map_surf)); } } catch(incorrect_map_format_error& e) { ERR_CF << "map could not be loaded: " << e.message << '\n';