From 21cd3af92d1fef3b8696fb03a90720ea9fa5a8d6 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 19 Dec 2004 21:18:14 +0000 Subject: [PATCH] Remove unused untranslatable default argument... ...and fix calling convention of the filechooser. --- src/dialogs.hpp | 3 +-- src/filechooser.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/dialogs.hpp b/src/dialogs.hpp index 698f35fc0b1..d232ca20991 100644 --- a/src/dialogs.hpp +++ b/src/dialogs.hpp @@ -58,8 +58,7 @@ void unit_speak(const config& message_info, display& disp, const unit_map& units /// index of the button pressed, or -1 if the dialog was canceled /// through keypress. int show_file_chooser_dialog(display &displ, std::string &filename, - const std::string title="Choose a File", - int xloc=-1, int yloc=-1); + std::string const &title, int xloc = -1, int yloc = -1); class unit_preview_pane : public gui::preview_pane { diff --git a/src/filechooser.cpp b/src/filechooser.cpp index 1897436d909..9d7352a75cb 100644 --- a/src/filechooser.cpp +++ b/src/filechooser.cpp @@ -8,8 +8,7 @@ namespace dialogs { int show_file_chooser_dialog(display &disp, std::string &filename, - const std::string title, - int xloc, int yloc) { + std::string const &title, int xloc, int yloc) { const events::event_context dialog_events_context; const gui::dialog_manager manager; const events::resize_lock prevent_resizing;