diff options
author | Bastian Bloessl <mail@bastibl.net> | 2019-08-27 18:17:29 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2019-09-05 13:14:21 +0200 |
commit | cb4c62961846d501e075447919f56fc85b5bfee6 (patch) | |
tree | 5ba85bba2576a200c2316daf500e3e83e8c1830c | |
parent | a0012b45a33173342f9f89484d9eb9365fffd76d (diff) |
ctrlport: do not store references to stack variables
-rw-r--r-- | gnuradio-runtime/include/gnuradio/rpcserver_aggregator.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gnuradio-runtime/include/gnuradio/rpcserver_aggregator.h b/gnuradio-runtime/include/gnuradio/rpcserver_aggregator.h index 85be9662e9..70f8e1773f 100644 --- a/gnuradio-runtime/include/gnuradio/rpcserver_aggregator.h +++ b/gnuradio-runtime/include/gnuradio/rpcserver_aggregator.h @@ -60,8 +60,8 @@ private: } void operator()(T& x) { x->i()->registerConfigureCallback(id, callback); } - const std::string& id; - const Tcallback& callback; + const std::string id; + const Tcallback callback; }; template <class T, typename Tcallback> @@ -69,7 +69,7 @@ private: unregisterConfigureCallback_f(const std::string& _id) : id(_id) { ; } void operator()(T& x) { x->i()->unregisterConfigureCallback(id); } - const std::string& id; + const std::string id; }; template <class T, typename Tcallback> @@ -81,8 +81,8 @@ private: } void operator()(T& x) { x->i()->registerQueryCallback(id, callback); } - const std::string& id; - const Tcallback& callback; + const std::string id; + const Tcallback callback; }; template <class T, typename Tcallback> @@ -90,7 +90,7 @@ private: unregisterQueryCallback_f(const std::string& _id) : id(_id) { ; } void operator()(T& x) { x->i()->unregisterQueryCallback(id); } - const std::string& id; + const std::string id; }; @@ -103,8 +103,8 @@ private: } void operator()(T& x) { x->i()->registerHandlerCallback(id, callback); } - const std::string& id; - const Tcallback& callback; + const std::string id; + const Tcallback callback; }; template <class T, typename Tcallback> @@ -112,7 +112,7 @@ private: unregisterHandlerCallback_f(const std::string& _id) : id(_id) { ; } void operator()(T& x) { x->i()->unregisterHandlerCallback(id); } - const std::string& id; + const std::string id; }; |