Remove unused untranslatable default argument...

...and fix calling convention of the filechooser.
This commit is contained in:
Guillaume Melquiond 2004-12-19 21:18:14 +00:00
parent 4fb7f0be79
commit 21cd3af92d
2 changed files with 2 additions and 4 deletions

View file

@ -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
{

View file

@ -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;