Fix some compilation warnings
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Recommendation
|
||||
|
||||
private:
|
||||
|
||||
std::string_view getName() const { return "Clusters"; }
|
||||
std::string_view getName() const override { return "Clusters"; }
|
||||
|
||||
bool init(Database::Session&, bool) override {return true;}
|
||||
void requestCancelInit() override {}
|
||||
|
||||
@@ -55,15 +55,15 @@ class FeaturesClassifier : public IClassifier
|
||||
static const FeatureSettingsMap& getDefaultTrainFeatureSettings();
|
||||
private:
|
||||
|
||||
std::string_view getName() const { return "Features"; }
|
||||
std::string_view getName() const override { return "Features"; }
|
||||
|
||||
bool init(Database::Session& session, bool databaseChanged) override;
|
||||
void requestCancelInit() override;
|
||||
|
||||
std::vector<Database::IdType> getSimilarTracksFromTrackList(Database::Session& session, Database::IdType tracklistId, std::size_t maxCount) const override;
|
||||
std::vector<Database::IdType> getSimilarTracks(Database::Session& session, const std::unordered_set<Database::IdType>& tracksId, std::size_t maxCount) const override;
|
||||
std::vector<Database::IdType> getSimilarReleases(Database::Session& session, Database::IdType releaseId, std::size_t maxCount) const;
|
||||
std::vector<Database::IdType> getSimilarArtists(Database::Session& session, Database::IdType artistId, std::size_t maxCount) const;
|
||||
std::vector<Database::IdType> getSimilarReleases(Database::Session& session, Database::IdType releaseId, std::size_t maxCount) const override;
|
||||
std::vector<Database::IdType> getSimilarArtists(Database::Session& session, Database::IdType artistId, std::size_t maxCount) const override;
|
||||
|
||||
bool initFromCache(Database::Session& session, const FeaturesClassifierCache& cache);
|
||||
|
||||
|
||||
@@ -23,14 +23,14 @@ namespace StringUtils
|
||||
{
|
||||
template<>
|
||||
std::optional<API::Subsonic::Id>
|
||||
StringUtils::readAs(const std::string& str)
|
||||
readAs(const std::string& str)
|
||||
{
|
||||
return API::Subsonic::IdFromString(str);
|
||||
}
|
||||
|
||||
template<>
|
||||
std::optional<bool>
|
||||
StringUtils::readAs(const std::string& str)
|
||||
readAs(const std::string& str)
|
||||
{
|
||||
if (str == "true")
|
||||
return true;
|
||||
|
||||
@@ -90,10 +90,10 @@ namespace StringUtils
|
||||
{
|
||||
template<>
|
||||
std::optional<API::Subsonic::Id>
|
||||
StringUtils::readAs(const std::string& str);
|
||||
readAs(const std::string& str);
|
||||
|
||||
template<>
|
||||
std::optional<bool>
|
||||
StringUtils::readAs(const std::string& str);
|
||||
readAs(const std::string& str);
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace StringUtils
|
||||
{
|
||||
template<>
|
||||
std::optional<API::Subsonic::ClientVersion>
|
||||
StringUtils::readAs(const std::string& str)
|
||||
readAs(const std::string& str)
|
||||
{
|
||||
// Expects "X.Y.Z"
|
||||
const auto numbers {StringUtils::splitString(str, ".")};
|
||||
|
||||
Reference in New Issue
Block a user