Skip to content

Commit

Permalink
remove string_view cast
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAyd committed Jan 10, 2024
1 parent 40e7f40 commit 95a2b0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pantab/src/pantab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ template <typename OffsetT> class Utf8InsertHelper : public InsertHelper {
const auto usize_bytes = static_cast<const size_t>(size_bytes);
hyperapi::string_view result{
reinterpret_cast<const char *>(buffer_) + current_offset, usize_bytes};
hyperapi::internal::ValueInserter(*inserter_)
.addValue<std::string_view>(result);
hyperapi::internal::ValueInserter(*inserter_).addValue(result);
}
};

Expand Down

0 comments on commit 95a2b0c

Please sign in to comment.