From: Carl Hetherington Date: Wed, 23 Nov 2022 20:03:52 +0000 (+0100) Subject: Cleanup: const correctness. X-Git-Tag: v2.16.34~23 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=210b3e7f82ce4da354174b40ec7b7a3f572cae4e Cleanup: const correctness. --- 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;