summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/collator.cc2
-rw-r--r--src/lib/collator.h2
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;