diff options
author | Henry Wilson <m3henry@googlemail.com> | 2018-09-25 21:20:24 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-03-26 20:15:57 +0000 |
commit | 097328c3d73520834b4ef801945c4f57f9eca0cd (patch) | |
tree | b128c52ecba8fecc8bec436b5517faf0f976d5d2 /src/os | |
parent | aa7ca7fe64af51c2cd2400e3dec477dfbddadae3 (diff) | |
download | openttd-097328c3d73520834b4ef801945c4f57f9eca0cd.tar.xz |
Codechange: Replaced SmallVector::Get() const with std alternatives
Diffstat (limited to 'src/os')
-rw-r--r-- | src/os/macosx/string_osx.cpp | 2 | ||||
-rw-r--r-- | src/os/windows/string_uniscribe.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/os/macosx/string_osx.cpp b/src/os/macosx/string_osx.cpp index 4abf0037c..261885187 100644 --- a/src/os/macosx/string_osx.cpp +++ b/src/os/macosx/string_osx.cpp @@ -86,7 +86,7 @@ public: virtual int GetLeading() const; virtual int GetWidth() const; virtual int CountRuns() const { return this->size(); } - virtual const VisualRun *GetVisualRun(int run) const { return *this->Get(run); } + virtual const VisualRun *GetVisualRun(int run) const { return this->at(run); } int GetInternalCharLength(WChar c) const { diff --git a/src/os/windows/string_uniscribe.cpp b/src/os/windows/string_uniscribe.cpp index 8877d36a6..f1c62c7d3 100644 --- a/src/os/windows/string_uniscribe.cpp +++ b/src/os/windows/string_uniscribe.cpp @@ -111,7 +111,7 @@ public: virtual int GetLeading() const; virtual int GetWidth() const; virtual int CountRuns() const { return this->size(); } - virtual const VisualRun *GetVisualRun(int run) const { return *this->Get(run); } + virtual const VisualRun *GetVisualRun(int run) const { return this->at(run); } int GetInternalCharLength(WChar c) const { |