Ext2FS: Make Ext2FS::GroupIndex a distinct integer type

This commit is contained in:
Andreas Kling 2021-02-12 13:33:58 +01:00
parent acf341862a
commit c62c00e7db
Notes: sideshowbarker 2024-07-18 22:24:27 +09:00
2 changed files with 18 additions and 16 deletions

View file

@ -113,7 +113,8 @@ public:
virtual u8 internal_file_type_to_directory_entry_type(const DirectoryEntryView& entry) const override;
private:
typedef unsigned GroupIndex;
TYPEDEF_DISTINCT_ORDERED_ID(unsigned, GroupIndex);
explicit Ext2FS(FileDescription&);
const ext2_super_block& super_block() const { return m_super_block; }