Skip to content

Commit

Permalink
Don't use auto type specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Dec 18, 2024
1 parent a2055fb commit 2610be4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmw_zenoh_cpp/src/detail/payload.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Payload
public:
explicit Payload(const zenoh::Bytes & bytes)
{
auto slices = bytes.slice_iter();
auto slice = slices.next();
zenoh::Bytes::SliceIterator slices = bytes.slice_iter();
std::optional<zenoh::Slice> slice = slices.next();
if (!slice.has_value()) {
bytes_ = nullptr;
} else {
Expand Down

0 comments on commit 2610be4

Please sign in to comment.