diff options
author | Max Kellermann <max@musicpd.org> | 2016-10-26 18:47:19 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-10-26 18:47:19 +0200 |
commit | 086652dd505285695418f46d83d18a82679ace37 (patch) | |
tree | 22bed586cd401123a954ef7cff16d2e4de22c899 /src/Partition.cxx | |
parent | 6135f0763b976829ddc8335f08258e6c6984fc6a (diff) |
Instance: add GetDatabaseOrThrow()
Diffstat (limited to 'src/Partition.cxx')
-rw-r--r-- | src/Partition.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx index 131c0c4a5..c5df91e69 100644 --- a/src/Partition.cxx +++ b/src/Partition.cxx @@ -50,6 +50,12 @@ Partition::GetDatabase(Error &error) const return instance.GetDatabase(error); } +const Database & +Partition::GetDatabaseOrThrow() const +{ + return instance.GetDatabaseOrThrow(); +} + void Partition::DatabaseModified(const Database &db) { |