Commit cab87e93 authored by Max Kellermann's avatar Max Kellermann

storage/FileInfo: make methods "constexpr"

parent 68003792
......@@ -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;
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment