some code style fixes
This commit is contained in:
parent
51800cdbcf
commit
6b28671c41
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)) {
|
||||
|
@ -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;
|
||||
|
@ -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});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user