summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Varshavchik2022-03-22 07:20:00 -0400
committerSam Varshavchik2022-03-22 07:20:00 -0400
commit118edec0f418108733663588ac8bb54b02e7912b (patch)
tree60382d02d7d420c9d459bbc26f12129f3aeecdff
parentc211a259e1f81d4a7aa5825777641b06eb74f109 (diff)
downloadcourier-libs-118edec0f418108733663588ac8bb54b02e7912b.tar.bz2
courier-unicode: fix -Wsuggest-override
-rw-r--r--unicode/courier-unicode.h.in10
-rw-r--r--unicode/wordbreaktest.C2
2 files changed, 6 insertions, 6 deletions
diff --git a/unicode/courier-unicode.h.in b/unicode/courier-unicode.h.in
index 8ef2dc5..6a6882e 100644
--- a/unicode/courier-unicode.h.in
+++ b/unicode/courier-unicode.h.in
@@ -1574,7 +1574,7 @@ class iconvert::tou : public iconvert {
using iconvert::operator();
private:
- int converted(const char *ptr, size_t cnt);
+ int converted(const char *ptr, size_t cnt) override;
public:
template<typename iter_t> class to_iter_class;
@@ -1625,7 +1625,7 @@ class iconvert::tou::to_iter_class : public iconvert::tou {
operator iter_t() const { return iter; }
private:
- int converted(const char32_t *ptr, size_t cnt)
+ int converted(const char32_t *ptr, size_t cnt) override
{
while (cnt)
{
@@ -1727,7 +1727,7 @@ class iconvert::fromu::to_iter_class : public iconvert::fromu {
operator iter_t() const { return iter; }
private:
- int converted(const char *ptr, size_t cnt)
+ int converted(const char *ptr, size_t cnt) override
{
while (cnt)
{
@@ -1853,7 +1853,7 @@ public:
using linebreak_callback_base::operator<<;
using linebreak_callback_base::operator();
private:
- int callback(int value);
+ int callback(int value) override;
};
/*
@@ -2043,7 +2043,7 @@ public:
using linebreakc_callback_base::operator<<;
using linebreakc_callback_base::operator();
private:
- int callback(int, char32_t);
+ int callback(int, char32_t) override;
};
diff --git a/unicode/wordbreaktest.C b/unicode/wordbreaktest.C
index 5df1e23..73d0e67 100644
--- a/unicode/wordbreaktest.C
+++ b/unicode/wordbreaktest.C
@@ -25,7 +25,7 @@ public:
using unicode::wordbreak_callback_base::operator<<;
private:
- int callback(bool flag)
+ int callback(bool flag) override
{
flags.push_back(flag);
return 0;