Commit cdf93e47 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix more clazy reported issues

parent 74c59bea
......@@ -786,7 +786,7 @@ void MediaPlayListProxyModel::enqueueDirectory(const QUrl &fileName, ElisaUtils:
QDir dirInfo = QDir(fileName.toLocalFile());
auto files = dirInfo.entryInfoList(QDir::NoDotAndDotDot | QDir::Readable | QDir::Files | QDir::Dirs, QDir::Name);
auto newFiles = DataTypes::EntryDataList();
for (auto file : files)
for (const auto &file : files)
{
auto fileUrl = QUrl::fromLocalFile(file.filePath());
if (file.isFile() && d->mMimeDb.mimeTypeForUrl(fileUrl).name().startsWith(QLatin1String("audio/")))
......
......@@ -49,7 +49,7 @@ public:
, mViewPresentationType(viewPresentationType)
, mFilterType(filterType)
, mDataType(dataType)
, mFallbackItemIcon(fallbackItemIcon)
, mFallbackItemIcon(std::move(fallbackItemIcon))
, mShowSecondaryTextOnDelegates(showSecondaryTextOnDelegates)
, mViewCanBeRated(viewCanBeRated)
, mIsValid(true)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment