Skip to content

Commit

Permalink
refactor SomeByteSize to be a static const int instead of enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Dreik committed Jun 17, 2023
1 parent 767f5cd commit d5a09ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Fileinfo.hh
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,8 @@ private:
*/
std::int64_t m_identity;

enum ByteSize
{
SomeByteSize = 64
};
static const int SomeByteSize = 64;

/// a buffer that will be filled with some bytes of the file or a hash
std::array<char, SomeByteSize> m_somebytes;
};
Expand Down

0 comments on commit d5a09ce

Please sign in to comment.