storage/FileInfo: make methods "constexpr"
This commit is contained in:
parent
680037927d
commit
cab87e9398
|
@ -50,11 +50,11 @@ struct StorageFileInfo {
|
||||||
*/
|
*/
|
||||||
unsigned device, inode;
|
unsigned device, inode;
|
||||||
|
|
||||||
bool IsRegular() const {
|
constexpr bool IsRegular() const {
|
||||||
return type == Type::REGULAR;
|
return type == Type::REGULAR;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsDirectory() const {
|
constexpr bool IsDirectory() const {
|
||||||
return type == Type::DIRECTORY;
|
return type == Type::DIRECTORY;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue