summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2019-04-02 21:30:34 +0200
committerMichael Lutz <michi@icosahedron.de>2019-04-09 22:45:15 +0200
commitfbc4cef180a60d8875df6298364f0459beb3568a (patch)
tree9e98cf68e1ea19b01a16639017509c9f2d55a292 /src/string.cpp
parentd95c7083ea582ea723107aa42f27b8cf3e3365e1 (diff)
downloadopenttd-fbc4cef180a60d8875df6298364f0459beb3568a.tar.xz
Codechange: Use override specifier for text layout classes.
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 7c16489bf..208f5e856 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -638,13 +638,13 @@ public:
this->utf16_to_utf8.push_back(0);
}
- virtual ~IcuStringIterator()
+ ~IcuStringIterator() override
{
delete this->char_itr;
delete this->word_itr;
}
- virtual void SetString(const char *s)
+ void SetString(const char *s) override
{
const char *string_base = s;
@@ -681,7 +681,7 @@ public:
this->word_itr->first();
}
- virtual size_t SetCurPosition(size_t pos)
+ size_t SetCurPosition(size_t pos) override
{
/* Convert incoming position to an UTF-16 string index. */
uint utf16_pos = 0;
@@ -699,7 +699,7 @@ public:
return this->utf16_to_utf8[this->char_itr->current()];
}
- virtual size_t Next(IterType what)
+ size_t Next(IterType what) override
{
int32_t pos;
switch (what) {
@@ -731,7 +731,7 @@ public:
return pos == icu::BreakIterator::DONE ? END : this->utf16_to_utf8[pos];
}
- virtual size_t Prev(IterType what)
+ size_t Prev(IterType what) override
{
int32_t pos;
switch (what) {