Skip to content

Commit 7a987d8

Browse files
authored
fixed missing 'inline's (#90)
* fixed missing 'inline's * misprint fix
1 parent 86b7165 commit 7a987d8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

include/zenohcxx/api.hxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ class Subscriber : public Owned<::z_owned_subscriber_t> {
17581758
#ifdef __ZENOHCXX_ZENOHC
17591759
/// @brief Get the key expression of the subscriber
17601760
/// @return ``zenoh::KeyExpr`` value
1761-
z::KeyExpr get_keyexpr() const;
1761+
z::KeyExpr get_keyexpr() const { return ::z_subscriber_keyexpr(loan()); }
17621762
#endif
17631763
};
17641764

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

18491849
#ifdef __ZENOHCXX_ZENOHC

include/zenohcxx/impl.hxx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,6 @@ inline bool z::Publisher::put_owned_impl(z::Payload&& payload, const z::Publishe
313313

314314
#endif
315315

316-
#ifdef __ZENOHCXX_ZENOHC
317-
z::KeyExpr z::Publisher::get_keyexpr() const { return ::z_publisher_keyexpr(loan()); }
318-
#endif
319-
320-
#ifdef __ZENOHCXX_ZENOHC
321-
z::KeyExpr z::Subscriber::get_keyexpr() const { return ::z_subscriber_keyexpr(loan()); }
322-
#endif
323-
324316
inline bool scout(z::ScoutingConfig&& config, ClosureHello&& callback, ErrNo& error) {
325317
auto c = config.take();
326318
auto cb = callback.take();

0 commit comments

Comments
 (0)