diff options
author | Max Kellermann <max@duempel.org> | 2014-12-10 07:57:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-10 07:57:07 +0100 |
commit | b30957c89cf39c187a562a33112e52e146969e80 (patch) | |
tree | 9d81a4704363e431c1e4f530047d08d67da680d7 /src/ReplayGainInfo.hxx | |
parent | dbbcbc36161cd6a4396c5b17d3edc96f4e9b9562 (diff) | |
download | mpd-b30957c89cf39c187a562a33112e52e146969e80.tar.gz mpd-b30957c89cf39c187a562a33112e52e146969e80.tar.xz mpd-b30957c89cf39c187a562a33112e52e146969e80.zip |
ReplayGainInfo: make IsDefined() constexpr
Diffstat (limited to 'src/ReplayGainInfo.hxx')
-rw-r--r-- | src/ReplayGainInfo.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ReplayGainInfo.hxx b/src/ReplayGainInfo.hxx index 37815c933..33bef36be 100644 --- a/src/ReplayGainInfo.hxx +++ b/src/ReplayGainInfo.hxx @@ -39,8 +39,7 @@ struct ReplayGainTuple { peak = 0.0; } - gcc_pure - bool IsDefined() const { + constexpr bool IsDefined() const { return gain > -100; } |