Remove unused untranslatable default argument...
...and fix calling convention of the filechooser.
This commit is contained in:
parent
4fb7f0be79
commit
21cd3af92d
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue