Skip to content

Commit

Permalink
warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Nov 7, 2023
1 parent c9f4d0e commit 447137e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/zenohcxx/api.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class BytesView : public Copyable<::z_bytes_t> {
/// @name Constructors

/// @brief Constructs an uninitialized instance
BytesView(nullptr_t) : Copyable(init(nullptr, 0)) {}
BytesView(std::nullptr_t) : Copyable(init(nullptr, 0)) {}
/// Constructs an instance from an array of bytes
/// @param s the array of bytes
/// @param _len the length of the array
Expand Down Expand Up @@ -493,7 +493,7 @@ struct KeyExprView : public Copyable<::z_keyexpr_t> {
/// @name Constructors

/// @brief Constructs an uninitialized instance
KeyExprView(nullptr_t) : Copyable(::z_keyexpr(nullptr)) {}
KeyExprView(std::nullptr_t) : Copyable(::z_keyexpr(nullptr)) {}
/// @brief Constructs an instance from a null-terminated string representing a key expression.
KeyExprView(const char* name) : Copyable(::z_keyexpr(name)) {}
/// @brief Constructs an instance from a null-terminated string representing a key expression withot validating it
Expand Down Expand Up @@ -1437,7 +1437,7 @@ class KeyExpr : public Owned<::z_owned_keyexpr_t> {
/// @name Constructors

/// @brief Create an uninitialized instance
explicit KeyExpr(nullptr_t) : Owned(nullptr) {}
explicit KeyExpr(std::nullptr_t) : Owned(nullptr) {}

/// @brief Create a new instance from a null-terminated string
explicit KeyExpr(const char* name) : Owned(::z_keyexpr_new(name)) {}
Expand Down
4 changes: 2 additions & 2 deletions include/zenohcxx/impl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ inline bool scout(z::ScoutingConfig&& config, ClosureHello&& callback, ErrNo& er
auto cb = callback.take();
error = ::z_scout(z_move(c), z_move(cb));
return error == 0;
};
}

inline bool scout(z::ScoutingConfig&& config, ClosureHello&& callback) {
ErrNo error;
Expand Down Expand Up @@ -574,7 +574,7 @@ inline std::variant<z::Session, z::ErrorMessage> open(z::Config&& config, bool
}
#endif
return session;
};
}

#ifdef __ZENOHCXX_ZENOHPICO
inline z::Session&& z::Session::operator=(Session&& other) {
Expand Down

0 comments on commit 447137e

Please sign in to comment.