summaryrefslogtreecommitdiff
path: root/src/database/song.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/song.cpp')
-rw-r--r--src/database/song.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/database/song.cpp b/src/database/song.cpp
index a0e6ce4b..b6a1baac 100644
--- a/src/database/song.cpp
+++ b/src/database/song.cpp
@@ -36,4 +36,10 @@ auto SongData::Exhume(const std::string& new_path) const -> SongData {
return SongData(id_, new_path, tags_hash_, play_count_, false);
}
+void swap(Song& first, Song& second) {
+ Song temp = first;
+ first = second;
+ second = temp;
+}
+
} // namespace database