Skip to content

Commit

Permalink
Added missing const
Browse files Browse the repository at this point in the history
empty() is a simple read-only getter, and therefore should be const.
  • Loading branch information
BrianWeed authored and Flamefire committed Aug 15, 2024
1 parent ea81c22 commit 84d91b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boost/locale/shared/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ namespace boost { namespace locale { namespace gnu_gettext {

size_t size() const { return size_; }

bool empty() { return size_ == 0; }
bool empty() const { return size_ == 0; }

private:
uint32_t get(unsigned offset) const
Expand Down

0 comments on commit 84d91b3

Please sign in to comment.