Skip to content

Commit

Permalink
warnings on macos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Sep 18, 2023
1 parent 2d6be38 commit 755531f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/zenohcxx/api.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class Str : public Owned<::z_owned_str_t> {
};

class KeyExpr;
class KeyExprView;
struct KeyExprView;

/// Empty type used to distinguish checked and unchecked constructing of KeyExprView
struct KeyExprUnchecked {
Expand Down
3 changes: 1 addition & 2 deletions include/zenohcxx/impl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,7 @@ inline bool z::Session::send_join(ErrNo& error) {
class _Resolved {
public:
_Resolved(const z::Session& s, const z::KeyExprView& source)
: str(std::move(source.resolve(s))),
keyexpr(str.check() ? z::KeyExprView(str.c_str(), KeyExprUnchecked()) : source) {}
: str(source.resolve(s)), keyexpr(str.check() ? z::KeyExprView(str.c_str(), KeyExprUnchecked()) : source) {}
operator const z::KeyExprView&() const { return keyexpr; }

private:
Expand Down

0 comments on commit 755531f

Please sign in to comment.