Skip to content

Commit

Permalink
Merge "ErrorWithCode::code() getter should be const"
Browse files Browse the repository at this point in the history
  • Loading branch information
jktjkt authored and Gerrit Code Review committed Oct 25, 2023
2 parents b7ed54d + 4706d77 commit 95a08b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libyang-cpp/Utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class LIBYANG_CPP_EXPORT ErrorWithCode : public Error {
public:
explicit ErrorWithCode(const std::string& what, uint32_t errCode);

ErrorCode code();
ErrorCode code() const;

private:
ErrorCode m_errCode;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ParsedInfoUnavailable::ParsedInfoUnavailable()
{
}

ErrorCode ErrorWithCode::code()
ErrorCode ErrorWithCode::code() const
{
return m_errCode;
}
Expand Down

0 comments on commit 95a08b9

Please sign in to comment.