Skip to content

Commit

Permalink
cppcheck: add const
Browse files Browse the repository at this point in the history
Found with functionConst

Signed-off-by: Rosen Penev <rosenp@gmail.com>
  • Loading branch information
neheb committed Feb 4, 2024
1 parent b93ab04 commit 3410eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebml/MemIOCallback.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class EBML_DLL_API MemIOCallback : public IOCallback
std::uint32_t write(IOCallback & IOToRead, std::size_t Size);

bool IsOk() const { return mOk; }
const std::string &GetLastErrorStr() { return mLastErrorStr; }
const std::string &GetLastErrorStr() const { return mLastErrorStr; }
protected:
bool mOk;
std::string mLastErrorStr;
Expand Down

0 comments on commit 3410eb3

Please sign in to comment.