Fix minor compile warnings/errors.

This commit is contained in:
Stephen Anthony 2021-11-29 13:27:56 -03:30
parent fb7418bd6a
commit 81c4498e88
3 changed files with 5 additions and 5 deletions

View File

@ -220,7 +220,7 @@ void FavoritesManager::incPopular(const string& path)
static constexpr uInt32 scale = 100;
static constexpr double factor = 0.7;
static constexpr uInt32 max_popular = scale;
static constexpr uInt32 min_popular = max_popular * factor;
//static constexpr uInt32 min_popular = max_popular * factor;
auto increased = myPopularMap.find(path);
if(increased != myPopularMap.end())
@ -276,4 +276,4 @@ const FavoritesManager::PopularList& FavoritesManager::sortedPopularList(bool so
return BSPF::compareIgnoreCase(aNode.getName(), bNode.getName()) < 0;
});
return sortedList;
}
}

View File

@ -39,7 +39,7 @@ class FavoritesManager
using PopularType = std::pair<string, uInt32>;
using PopularList = std::vector<PopularType>;
FavoritesManager::FavoritesManager(Settings& settings);
explicit FavoritesManager(Settings& settings);
void load();
void save();
@ -87,4 +87,4 @@ class FavoritesManager
FavoritesManager& operator=(FavoritesManager&&) = delete;
};
#endif
#endif

View File

@ -184,7 +184,7 @@ void LauncherFileListWidget::removeFavorite()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void LauncherFileListWidget::userFavor(const string& path, bool isUserFavorite)
{
int pos = 0;
size_t pos = 0;
for(const auto& file : _fileList)
{