diff options
author | Max Kellermann <max@duempel.org> | 2014-01-19 11:23:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-19 11:23:02 +0100 |
commit | ba372197fbda68d72857585008061ca5f781f805 (patch) | |
tree | f022ca7204ccc6156af2613bf0f57bd55c91aa97 /src/db/SimpleDatabasePlugin.hxx | |
parent | bde27ccec3468efb3bc669b980e8850cb5150e15 (diff) | |
download | mpd-ba372197fbda68d72857585008061ca5f781f805.tar.gz mpd-ba372197fbda68d72857585008061ca5f781f805.tar.xz mpd-ba372197fbda68d72857585008061ca5f781f805.zip |
db/simple: make borrowed_song_count "mutable"
Simpler to use than const_cast.
Diffstat (limited to '')
-rw-r--r-- | src/db/SimpleDatabasePlugin.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db/SimpleDatabasePlugin.hxx b/src/db/SimpleDatabasePlugin.hxx index 5145c0bc8..d51174194 100644 --- a/src/db/SimpleDatabasePlugin.hxx +++ b/src/db/SimpleDatabasePlugin.hxx @@ -37,7 +37,7 @@ class SimpleDatabase : public Database { time_t mtime; #ifndef NDEBUG - unsigned borrowed_song_count; + mutable unsigned borrowed_song_count; #endif SimpleDatabase() |