aboutsummaryrefslogtreecommitdiffstats
path: root/src/ReplayGainInfo.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-10 07:57:07 +0100
committerMax Kellermann <max@duempel.org>2014-12-10 07:57:07 +0100
commitb30957c89cf39c187a562a33112e52e146969e80 (patch)
tree9d81a4704363e431c1e4f530047d08d67da680d7 /src/ReplayGainInfo.hxx
parentdbbcbc36161cd6a4396c5b17d3edc96f4e9b9562 (diff)
downloadmpd-b30957c89cf39c187a562a33112e52e146969e80.tar.gz
mpd-b30957c89cf39c187a562a33112e52e146969e80.tar.xz
mpd-b30957c89cf39c187a562a33112e52e146969e80.zip
ReplayGainInfo: make IsDefined() constexpr
Diffstat (limited to '')
-rw-r--r--src/ReplayGainInfo.hxx3
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;
}