aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/wide.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/charset/wide.cpp
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/charset/wide.cpp')
-rw-r--r--util/charset/wide.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/charset/wide.cpp b/util/charset/wide.cpp
index 83390b7836..a287438ddd 100644
--- a/util/charset/wide.cpp
+++ b/util/charset/wide.cpp
@@ -186,7 +186,7 @@ static bool ModifySequence(const TCharType*& p, const TCharType* const pe, TChar
}
template <class TStringType>
-static void DetachAndFixPointers(TStringType& text, typename TStringType::value_type*& p, const typename TStringType::value_type*& pe) {
+static void DetachAndFixPointers(TStringType& text, typename TStringType::value_type*& p, const typename TStringType::value_type*& pe) {
const auto pos = p - text.data();
const auto count = pe - p;
p = text.Detach() + pos;
@@ -203,7 +203,7 @@ static bool ModifyStringSymbolwise(TStringType& text, size_t pos, size_t count,
// TUtf16String is refcounted and it's `data` method return pointer to the constant memory.
// To simplify the code we do a `const_cast`, though first write to the memory will be done only
// after we call `Detach()` and get pointer to a writable piece of memory.
- auto* p = const_cast<typename TStringType::value_type*>(text.data() + pos);
+ auto* p = const_cast<typename TStringType::value_type*>(text.data() + pos);
const auto* pe = text.data() + pos + count;
if (ModifySequence<true>(p, pe, f)) {