[core] Fix modernize-return-braced-init-list errors in header files

As reported by clang-tidy-8.
This commit is contained in:
Thiago Marcos P. Santos
2020-03-27 18:30:35 +02:00
parent 46fa691596
commit 4cdc067636
6 changed files with 11 additions and 18 deletions

View File

@@ -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_;