From cab87e9398bcaf9dd5a8cfbfcf2cca4ee8e581ae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Oct 2016 21:35:09 +0200 Subject: [PATCH] storage/FileInfo: make methods "constexpr" --- src/storage/FileInfo.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/FileInfo.hxx b/src/storage/FileInfo.hxx index 1baf6db99..807992a6b 100644 --- a/src/storage/FileInfo.hxx +++ b/src/storage/FileInfo.hxx @@ -50,11 +50,11 @@ struct StorageFileInfo { */ unsigned device, inode; - bool IsRegular() const { + constexpr bool IsRegular() const { return type == Type::REGULAR; } - bool IsDirectory() const { + constexpr bool IsDirectory() const { return type == Type::DIRECTORY; } };