diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | 4cdc067636ca7f9201faddf1410b6e781dd7c4c5 (patch) | |
tree | b0856bc904d87a19600499fc64f42377f33451fc /include/mbgl/util/char_array_buffer.hpp | |
parent | 46fa69159616860ded192643031f7cb3c10b818b (diff) | |
download | qtlocation-mapboxgl-4cdc067636ca7f9201faddf1410b6e781dd7c4c5.tar.gz |
[core] Fix modernize-return-braced-init-list errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'include/mbgl/util/char_array_buffer.hpp')
-rw-r--r-- | include/mbgl/util/char_array_buffer.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/char_array_buffer.hpp b/include/mbgl/util/char_array_buffer.hpp index 177f005477..80eeb2db62 100644 --- a/include/mbgl/util/char_array_buffer.hpp +++ b/include/mbgl/util/char_array_buffer.hpp @@ -43,7 +43,7 @@ private: if (dir == std::ios_base::beg) current_ = std::min(begin_ + off, end_); else if (dir == std::ios_base::cur) current_ = std::min(current_ + off, end_); else current_ = std::max(end_ - off, begin_); // dir == std::ios_base::end - return pos_type(off_type(current_ - begin_)); + return {off_type(current_ - begin_)}; } char const * const begin_; |