fix: sonarcloud (#2558)

* fix: add const modifier for functions

* fix: many sonarcloud use-init-statement warnings
This commit is contained in:
Charles Kerr
2022-01-31 22:46:27 -06:00
committed by GitHub
parent cf2c32e1ce
commit 8b9483f7fb
58 changed files with 158 additions and 288 deletions

View File

@@ -112,9 +112,7 @@ void PathButton::onClicked() const
dialog->setNameFilter(name_filter_);
}
QFileInfo const path_info(path_);
if (!path_.isEmpty() && path_info.exists())
if (QFileInfo const path_info(path_); !path_.isEmpty() && path_info.exists())
{
if (path_info.isDir())
{