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 5, 2024
1 parent 9b898c9 commit 13453dd
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 13453dd

Please sign in to comment.