storage/FileInfo: make methods "constexpr"

This commit is contained in:
Max Kellermann 2016-10-27 21:35:09 +02:00
parent 680037927d
commit cab87e9398
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
};