From 980187f85643adbb67c95d72794fbe74e585acd5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 20 Jun 2015 15:33:17 +0200 Subject: system/PeriodClock: make IsDefined() "constexpr" --- src/system/PeriodClock.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/system/PeriodClock.hxx') 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; } -- cgit v1.2.3