some code style fixes

This commit is contained in:
Alberto Griggio 2017-06-19 13:49:14 +02:00
parent 51800cdbcf
commit 6b28671c41
5 changed files with 3 additions and 7 deletions

View File

@ -1893,7 +1893,7 @@ void EditorPanel::sendToGimpPressed ()
}
bool EditorPanel::saveImmediately(const Glib::ustring &filename, SaveFormat sf)
bool EditorPanel::saveImmediately(const Glib::ustring &filename, const SaveFormat &sf)
{
rtengine::procparams::ProcParams pparams;
ipc->getParams (&pparams);

View File

@ -131,7 +131,7 @@ public:
void defaultMonitorProfileChanged(const Glib::ustring &profile_name, bool auto_monitor_profile);
bool saveImmediately(const Glib::ustring &filename, SaveFormat sf);
bool saveImmediately(const Glib::ustring &filename, const SaveFormat &sf);
Gtk::Paned* catalogPane;

View File

@ -190,7 +190,6 @@ void FilePanel::init ()
dirBrowser->fillDirTree ();
placesBrowser->refreshPlacesList ();
//if (argv1 != "" && Glib::file_test (argv1, Glib::FILE_TEST_IS_DIR)) {
if (!argv1.empty() && Glib::file_test (argv1, Glib::FILE_TEST_EXISTS)) {
Glib::ustring d(argv1);
if (!Glib::file_test(d, Glib::FILE_TEST_IS_DIR)) {

View File

@ -294,8 +294,6 @@ int main(int argc, char **argv)
#endif
//simpleEditor = false;
if (!argv1.empty()) {
if( Glib::file_test(argv1, Glib::FILE_TEST_EXISTS) && !Glib::file_test(argv1, Glib::FILE_TEST_IS_DIR)) {
simpleEditor = true;

View File

@ -287,8 +287,7 @@ RTWindow::RTWindow ()
if (!argv1.empty()) {
Thumbnail* thm = cacheMgr->getEntry(argv1);
if (thm) {
std::vector<Thumbnail *> entries(1, thm);
fpanel->fileCatalog->openRequested(entries);
fpanel->fileCatalog->openRequested({thm});
}
}
}