diff --git a/rtgui/filebrowser.cc b/rtgui/filebrowser.cc index 9f267be4e..53e6fa7f1 100644 --- a/rtgui/filebrowser.cc +++ b/rtgui/filebrowser.cc @@ -1779,9 +1779,7 @@ void FileBrowser::openNextImage() } // open the selected image - std::vector entries; - entries.push_back(thumb); - tbl->openRequested(entries); + tbl->openRequested({thumb}); return; } @@ -1844,9 +1842,7 @@ void FileBrowser::openPrevImage() } // open the selected image - std::vector entries; - entries.push_back(thumb); - tbl->openRequested(entries); + tbl->openRequested({thumb}); return; } @@ -1857,7 +1853,7 @@ void FileBrowser::openPrevImage() } } -void FileBrowser::selectImage(Glib::ustring fname) +void FileBrowser::selectImage(const Glib::ustring& fname) { MYWRITERLOCK(l, entryRW); @@ -1903,7 +1899,7 @@ void FileBrowser::selectImage(Glib::ustring fname) } } -void FileBrowser::openNextPreviousEditorImage (Glib::ustring fname, eRTNav nextPrevious) +void FileBrowser::openNextPreviousEditorImage (const Glib::ustring& fname, eRTNav nextPrevious) { // let FileBrowser acquire Editor's perspective diff --git a/rtgui/filebrowser.h b/rtgui/filebrowser.h index 44646ab17..484d414ae 100644 --- a/rtgui/filebrowser.h +++ b/rtgui/filebrowser.h @@ -183,12 +183,12 @@ public: void openNextImage(); void openPrevImage(); - void selectImage(Glib::ustring fname); + void selectImage(const Glib::ustring& fname); void copyProfile (); void pasteProfile (); void partPasteProfile (); - void openNextPreviousEditorImage (Glib::ustring fname, eRTNav eNextPrevious); + void openNextPreviousEditorImage(const Glib::ustring& fname, eRTNav eNextPrevious); #ifdef WIN32 void openDefaultViewer (int destination);