mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-16 15:40:06 +00:00
Fixed clang++3.8/Linux compile.
This commit is contained in:
parent
b101af4569
commit
8e0378e922
src/core/library
@ -139,7 +139,7 @@ bool AlbumListQuery::OnRun(Connection& db) {
|
||||
}
|
||||
|
||||
if (category) {
|
||||
stmt.BindInt(bindIndex, this->fieldIdValue);
|
||||
stmt.BindInt(bindIndex, (uint64) this->fieldIdValue);
|
||||
}
|
||||
|
||||
while (stmt.Step() == Row) {
|
||||
|
@ -114,7 +114,7 @@ bool SavePlaylistQuery::AddTracksToPlaylist(musik::core::db::Connection &db, DBI
|
||||
for (size_t i = 0; i < tracks.Count(); i++) {
|
||||
track = tracks.Get(i);
|
||||
insertTrack.Reset();
|
||||
insertTrack.BindInt(0, track->GetId());
|
||||
insertTrack.BindInt(0, (uint64) track->GetId());
|
||||
insertTrack.BindInt(1, playlistId);
|
||||
insertTrack.BindInt(2, (int) i);
|
||||
|
||||
@ -186,4 +186,4 @@ bool SavePlaylistQuery::OnRun(musik::core::db::Connection &db) {
|
||||
}
|
||||
|
||||
return this->CreatePlaylist(db);
|
||||
}
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ static DBID writeToTracksTable(
|
||||
stmt.BindText(10, track.GetValue("path_id"));
|
||||
|
||||
if (track.GetId() != 0) {
|
||||
stmt.BindInt(0, track.GetId());
|
||||
stmt.BindInt(0, (uint64) track.GetId());
|
||||
}
|
||||
|
||||
if (stmt.Step() == db::Done) {
|
||||
|
@ -174,7 +174,7 @@ bool LibraryTrack::Load(Track *target, db::Connection &db) {
|
||||
"FROM tracks t, paths p, albums al " \
|
||||
"WHERE t.id=? AND t.album_id=al.id", db);
|
||||
|
||||
trackQuery.BindInt(0, target->GetId());
|
||||
trackQuery.BindInt(0, (uint64) target->GetId());
|
||||
if (trackQuery.Step() == db::Row) {
|
||||
target->SetValue("track", trackQuery.ColumnText(0));
|
||||
target->SetValue("disc", trackQuery.ColumnText(1));
|
||||
@ -192,17 +192,17 @@ bool LibraryTrack::Load(Track *target, db::Connection &db) {
|
||||
target->SetValue("album_artist_id", trackQuery.ColumnText(13));
|
||||
target->SetValue("album_id", trackQuery.ColumnText(14));
|
||||
|
||||
genresQuery.BindInt(0, target->GetId());
|
||||
genresQuery.BindInt(0, (uint64) target->GetId());
|
||||
while (genresQuery.Step() == db::Row) {
|
||||
target->SetValue("genre", genresQuery.ColumnText(0));
|
||||
}
|
||||
|
||||
artistsQuery.BindInt(0, target->GetId());
|
||||
artistsQuery.BindInt(0, (uint64) target->GetId());
|
||||
while (artistsQuery.Step() == db::Row) {
|
||||
target->SetValue("artist", artistsQuery.ColumnText(0));
|
||||
}
|
||||
|
||||
allMetadataQuery.BindInt(0, target->GetId());
|
||||
allMetadataQuery.BindInt(0, (uint64) target->GetId());
|
||||
while (allMetadataQuery.Step() == db::Row) {
|
||||
target->SetValue(allMetadataQuery.ColumnText(1), allMetadataQuery.ColumnText(0));
|
||||
}
|
||||
@ -221,4 +221,4 @@ LibraryTrack::LibraryData::LibraryData()
|
||||
|
||||
LibraryTrack::LibraryData::~LibraryData() {
|
||||
delete this->thumbnailData;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user