diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-23 21:03:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-23 21:23:25 +0100 |
| commit | 210b3e7f82ce4da354174b40ec7b7a3f572cae4e (patch) | |
| tree | 557059d6ec052f94f8fa3cddea34b8ab9390ae28 /src/lib | |
| parent | ed0b5670e65647a9f0555ed66f81125678d193a7 (diff) | |
Cleanup: const correctness.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/collator.cc | 2 | ||||
| -rw-r--r-- | src/lib/collator.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/collator.cc b/src/lib/collator.cc index 4f52597c2..17afbe852 100644 --- a/src/lib/collator.cc +++ b/src/lib/collator.cc @@ -53,7 +53,7 @@ Collator::~Collator() int -Collator::compare (string const& utf8_a, string const& utf8_b) +Collator::compare (string const& utf8_a, string const& utf8_b) const { if (_collator) { UErrorCode error = U_ZERO_ERROR; diff --git a/src/lib/collator.h b/src/lib/collator.h index 3762f2400..d42278124 100644 --- a/src/lib/collator.h +++ b/src/lib/collator.h @@ -38,7 +38,7 @@ public: Collator(Collator const &) = delete; Collator& operator=(Collator const&) = delete; - int compare(std::string const& utf8_a, std::string const& utf8_b); + int compare(std::string const& utf8_a, std::string const& utf8_b) const; private: UCollator* _collator = nullptr; |
