aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-20 15:33:17 +0200
committerMax Kellermann <max@duempel.org>2015-06-20 15:33:17 +0200
commit980187f85643adbb67c95d72794fbe74e585acd5 (patch)
tree2f7c28bf4bfbdf97c5169bd0d1db1a4760225979 /src
parent327a8e6c5974f99ff1067afc2e725a2ebc2c4802 (diff)
downloadmpd-980187f85643adbb67c95d72794fbe74e585acd5.tar.gz
mpd-980187f85643adbb67c95d72794fbe74e585acd5.tar.xz
mpd-980187f85643adbb67c95d72794fbe74e585acd5.zip
system/PeriodClock: make IsDefined() "constexpr"
Diffstat (limited to 'src')
-rw-r--r--src/system/PeriodClock.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/PeriodClock.hxx b/src/system/PeriodClock.hxx
index 1ba74ece2..2c535fee9 100644
--- a/src/system/PeriodClock.hxx
+++ b/src/system/PeriodClock.hxx
@@ -63,7 +63,7 @@ protected:
}
public:
- bool IsDefined() const {
+ constexpr bool IsDefined() const {
return last != 0;
}