diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index df7842bc7..622124be4 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -1020,8 +1020,7 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam path += seqstr.str (); } else if (options.savePathTemplate[ix] == 't') { // Insert formatted date/time value. Character after 't' defines time source - if (++ix < options.savePathTemplate.size()) - { + if (++ix < options.savePathTemplate.size()) { Glib::DateTime dateTime; bool dateTimeIsValid = true; switch(options.savePathTemplate[ix++]) @@ -1050,8 +1049,7 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam dateTimeIsValid = false; break; } - if (dateTimeIsValid) - { + if (dateTimeIsValid) { appendFormattedTime(path, ix, options.savePathTemplate, dateTime); } } diff --git a/rtgui/batchqueuepanel.cc b/rtgui/batchqueuepanel.cc index 2daccc5ec..b74998738 100644 --- a/rtgui/batchqueuepanel.cc +++ b/rtgui/batchqueuepanel.cc @@ -389,12 +389,10 @@ void BatchQueuePanel::populateTemplateHelpBuffer(Glib::RefPtr b // Since this code only ever runs once (the first time the help text is presented), no attempt is // made to be efficient. Use a brute-force method to discover the number of elements in exampleFilePath. int pathElementCount = 0; - for (int n=9; n>=0; n--) - { + for (int n=9; n>=0; n--) { options.savePathTemplate = Glib::ustring::format("%d",n); auto result = BatchQueue::calcAutoFileNameBase(exampleFilePath); - if (!result.empty()) - { + if (!result.empty()) { // The 'd' specifier returns an empty string if N exceeds the number of path elements, so // the largest N that does not return an empty string is the number of elements in exampleFilePath. pathElementCount = n; @@ -405,8 +403,7 @@ void BatchQueuePanel::populateTemplateHelpBuffer(Glib::RefPtr b // number of elements in the path. auto insertPathExamples = [&buffer, &pos, pathElementCount, exampleFilePath](char letter, int offset1, int mult1, int offset2, int mult2) { - for (int n=0; n b options.savePathTemplate = path2; auto result2 = BatchQueue::calcAutoFileNameBase(exampleFilePath); pos = buffer->insert_markup(pos, Glib::ustring::format("\n ", path1, " = ", path2, " = ", result1, "")); - if (result1 != result2) - { + if (result1 != result2) { // If this error appears, it indicates a coding error in either BatchQueue::calcAutoFileNameBase // or BatchQueuePanel::populateTemplateHelpBuffer. pos = buffer->insert_markup(pos, Glib::ustring::format(" ", M("QUEUE_LOCATION_TEMPLATE_HELP_RESULT_MISMATCH"), " ", result2));