Fixed compiler errors and warning that showed up on Debian Stretch.

This commit is contained in:
casey langen 2017-12-04 00:12:21 +00:00
parent e9f924fef8
commit dca2526879
3 changed files with 5 additions and 3 deletions

View File

@ -90,7 +90,7 @@ class ExternalIdListToTrackListQuery : public TrackListQueryBase {
}
protected:
virtual bool OnRun(musik::core::db::Connection& db) {
virtual bool OnRun(musik::core::db::Connection& db) override {
std::string sql = "SELECT id, external_id FROM tracks WHERE external_id IN(";
for (size_t i = 0; i < externalIdCount; i++) {
sql += (i == 0) ? "?" : ",?";
@ -128,7 +128,7 @@ class ExternalIdListToTrackListQuery : public TrackListQueryBase {
return true;
}
virtual std::string Name() {
virtual std::string Name() override {
return "ExternalIdListToTrackListQuery";
}

View File

@ -34,6 +34,8 @@
#pragma once
#include <stddef.h>
namespace musik { namespace core { namespace sdk {
class IPreferences {

View File

@ -79,7 +79,7 @@ namespace musik { namespace core {
virtual void SetDouble(const char* key, double value) override;
virtual void SetString(const char* key, const char* value) override;
virtual void Save();
virtual void Save() override;
/* easier interface for internal use */
virtual bool GetBool(const std::string& key, bool defaultValue = false);