Add braces around single line statements

* Ran clang-tidy with "readability-braces-around-statements" to find missing braces around statements.
This commit is contained in:
Jonathan White
2020-01-07 22:06:31 -05:00
parent c427000184
commit c663b5d5fc
12 changed files with 98 additions and 54 deletions

View File

@@ -65,8 +65,9 @@ QStringList FileDialog::getOpenFileNames(QWidget* parent,
const auto& workingDir = dir.isEmpty() ? config()->get("LastDir").toString() : dir;
auto results = QFileDialog::getOpenFileNames(parent, caption, workingDir, filter, selectedFilter, options);
for (auto& path : results)
for (auto& path : results) {
path = QDir::toNativeSeparators(path);
}
#ifdef Q_OS_MACOS
// on Mac OS X the focus is lost after closing the native dialog