update sensor page
diff --git a/boost-dbus/include/dbus/match.hpp b/boost-dbus/include/dbus/match.hpp
index 0488aa0..cdcd169 100644
--- a/boost-dbus/include/dbus/match.hpp
+++ b/boost-dbus/include/dbus/match.hpp
@@ -22,16 +22,16 @@
* dispose of the object.
*/
class match {
- connection& connection_;
+ connection_ptr connection_;
std::string expression_;
public:
- match(connection& c, BOOST_ASIO_MOVE_ARG(std::string) e)
+ match(connection_ptr c, BOOST_ASIO_MOVE_ARG(std::string) e)
: connection_(c), expression_(BOOST_ASIO_MOVE_CAST(std::string)(e)) {
- connection_.new_match(*this);
+ connection_->new_match(*this);
}
- ~match() { connection_.delete_match(*this); }
+ ~match() { connection_->delete_match(*this); }
const std::string& get_expression() const { return expression_; }