Skip to content

Commit

Permalink
fixed missing 'inline's (#90)
Browse files Browse the repository at this point in the history
* fixed missing 'inline's

* misprint fix
  • Loading branch information
milyin authored Dec 19, 2023
1 parent 86b7165 commit 7a987d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions include/zenohcxx/api.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -1758,7 +1758,7 @@ class Subscriber : public Owned<::z_owned_subscriber_t> {
#ifdef __ZENOHCXX_ZENOHC
/// @brief Get the key expression of the subscriber
/// @return ``zenoh::KeyExpr`` value
z::KeyExpr get_keyexpr() const;
z::KeyExpr get_keyexpr() const { return ::z_subscriber_keyexpr(loan()); }
#endif
};

Expand Down Expand Up @@ -1843,7 +1843,7 @@ class Publisher : public Owned<::z_owned_publisher_t> {
#ifdef __ZENOHCXX_ZENOHC
/// @brief Get the key expression of the publisher
/// @return ``zenoh::KeyExpr`` value
z::KeyExpr get_keyexpr() const;
z::KeyExpr get_keyexpr() const { return ::z_publisher_keyexpr(loan()); }
#endif

#ifdef __ZENOHCXX_ZENOHC
Expand Down
8 changes: 0 additions & 8 deletions include/zenohcxx/impl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,6 @@ inline bool z::Publisher::put_owned_impl(z::Payload&& payload, const z::Publishe

#endif

#ifdef __ZENOHCXX_ZENOHC
z::KeyExpr z::Publisher::get_keyexpr() const { return ::z_publisher_keyexpr(loan()); }
#endif

#ifdef __ZENOHCXX_ZENOHC
z::KeyExpr z::Subscriber::get_keyexpr() const { return ::z_subscriber_keyexpr(loan()); }
#endif

inline bool scout(z::ScoutingConfig&& config, ClosureHello&& callback, ErrNo& error) {
auto c = config.take();
auto cb = callback.take();
Expand Down

0 comments on commit 7a987d8

Please sign in to comment.