mirror of https://github.com/stella-emu/stella.git
Fix minor compile warnings/errors.
This commit is contained in:
parent
fb7418bd6a
commit
81c4498e88
|
@ -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())
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue