From b30957c89cf39c187a562a33112e52e146969e80 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 10 Dec 2014 07:57:07 +0100 Subject: ReplayGainInfo: make IsDefined() constexpr --- src/ReplayGainInfo.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3