Skip to content

Commit

Permalink
Run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf authored and hatstand committed Jan 8, 2025
1 parent 10feee4 commit 54ad1c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/visualisations/projectmpresetmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ ProjectMPresetModel::ProjectMPresetModel(ProjectMVisualisation* vis,
QObject* parent)
: QAbstractItemModel(parent), vis_(vis) {
// Find presets
QDirIterator it(vis_->preset_url(),
QStringList() << "*.milk" << "*.prjm",
QDir::Files | QDir::NoDotAndDotDot | QDir::Readable,
QDirIterator::Subdirectories);
QDirIterator it(vis_->preset_url(), QStringList() << "*.milk" << "*.prjm",
QDir::Files | QDir::NoDotAndDotDot | QDir::Readable,
QDirIterator::Subdirectories);
std::set<std::pair<QString, QString>> files;
while (it.hasNext()) {
it.next();
Expand Down
4 changes: 3 additions & 1 deletion src/visualisations/projectmvisualisation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ void ProjectMVisualisation::InitProjectM() {
if (!QFile::exists(path)) continue;

// Don't use empty directories
if (QDir(path).entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot).isEmpty())
if (QDir(path)
.entryList(QDir::Dirs | QDir::Files | QDir::NoDotAndDotDot)
.isEmpty())
continue;

preset_path = path;
Expand Down

0 comments on commit 54ad1c8

Please sign in to comment.