Skip to content

Commit

Permalink
Fix file function constness (#786)
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon authored Feb 10, 2024
1 parent dbfc5bc commit 7eb9ef8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/common/system/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ class File : public MemoryPoolObject

bool Eof();

const char *Get_Name() { return m_name.Str(); }
const char *Get_Name() const { return m_name.Str(); }
void Set_Name(const char *name) { m_name = name; }
int Get_Access() { return m_access; }
int Get_Access() const { return m_access; }
void Delete_On_Close() { m_deleteOnClose = true; }

protected:
Expand Down

0 comments on commit 7eb9ef8

Please sign in to comment.