diff --git a/src/library/browse/browsefeature.cpp b/src/library/browse/browsefeature.cpp index ec6b76b4257e..c08a503f35fd 100644 --- a/src/library/browse/browsefeature.cpp +++ b/src/library/browse/browsefeature.cpp @@ -1,7 +1,6 @@ #include "library/browse/browsefeature.h" #include -#include #include #include #include diff --git a/src/library/browse/foldertreemodel.cpp b/src/library/browse/foldertreemodel.cpp index 85fd7f1cda01..8a5964826614 100644 --- a/src/library/browse/foldertreemodel.cpp +++ b/src/library/browse/foldertreemodel.cpp @@ -166,8 +166,8 @@ void FolderTreeModel::directoryHasChildren(const QString& path) { // http://stackoverflow.com/questions/2579948/checking-if-subfolders-exist-linux std::string dot("."), dotdot(".."); - QByteArray ba = QFile::encodeName(path); - DIR* directory = opendir(ba); + QByteArray directory_name = QFile::encodeName(path); + DIR* directory = opendir(directory_name); int unknown_count = 0; int total_count = 0; if (directory != nullptr) {