diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-01-08 22:30:15 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-01-08 22:39:01 +0000 |
| commit | dcd8f6ef0105578e10dc18975871bc59154e008c (patch) | |
| tree | 2e0e2e11d4afcf9c351c3a7dd8c9847b253d3017 /src/shared_string.hh | |
| parent | 9dfd17a5bc584a66711707044bdf27ff57e7aebb (diff) | |
Apply clang-tidy modernize to the codebase
Diffstat (limited to 'src/shared_string.hh')
| -rw-r--r-- | src/shared_string.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared_string.hh b/src/shared_string.hh index 49bbdb4c..a13f042f 100644 --- a/src/shared_string.hh +++ b/src/shared_string.hh @@ -35,7 +35,7 @@ struct StringData : UseMemoryDomain<MemoryDomain::SharedString> { const int len = (int)str.length() + (back != 0 ? 1 : 0); void* ptr = StringData::operator new(sizeof(StringData) + len + 1); - StringData* res = new (ptr) StringData(0, len); + auto* res = new (ptr) StringData(0, len); std::copy(str.begin(), str.end(), res->data()); if (back != 0) res->data()[len-1] = back; |
