summaryrefslogtreecommitdiff
path: root/src/database/index.cpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-10-24 12:50:03 +1100
committerjacqueline <me@jacqueline.id.au>2023-10-24 12:50:03 +1100
commit4f8c127da926bc1e1724e7686a42d37c1da0f563 (patch)
tree3008768b88bd6fb07c2bc51905ab0bb95de65c1e /src/database/index.cpp
parent5b5b792467537bc8afefea787f6e5c8c52d973fa (diff)
downloadtangara-fw-4f8c127da926bc1e1724e7686a42d37c1da0f563.tar.gz
Use an mutable struct + const instead of an immutable class
Diffstat (limited to 'src/database/index.cpp')
-rw-r--r--src/database/index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/index.cpp b/src/database/index.cpp
index c7fd753a..4d1f7b06 100644
--- a/src/database/index.cpp
+++ b/src/database/index.cpp
@@ -89,7 +89,7 @@ auto Index(const IndexInfo& info, const Track& t, leveldb::WriteBatch* batch)
// If this is the last component, then we should also fill in the track id
// and title.
if (i == info.components.size() - 1) {
- key.track = t.data().id();
+ key.track = t.data().id;
value = t.TitleOrFilename();
}