From 152cd2b8f24ae2cdac8b6bed5f05c0cf3a40c4bf Mon Sep 17 00:00:00 2001 From: Johannes Schanda Date: Fri, 7 Jun 2013 10:28:28 +0200 Subject: [PATCH] More build correction of self reference --- src/CommonAPI/DBus/DBusConnection.cpp | 2 +- src/CommonAPI/DBus/DBusConnection.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommonAPI/DBus/DBusConnection.cpp b/src/CommonAPI/DBus/DBusConnection.cpp index d198ae8..c46334d 100644 --- a/src/CommonAPI/DBus/DBusConnection.cpp +++ b/src/CommonAPI/DBus/DBusConnection.cpp @@ -29,7 +29,7 @@ DBusObjectPathVTable DBusConnection::libdbusObjectPathVTable_ = { &DBusConnection::onLibdbusObjectPathMessageThunk }; -void DBusConnection::dispatch(std::shared_ptr&& selfReference) { +void DBusConnection::dispatch(std::shared_ptr& selfReference) { while (!stopDispatching_ && readWriteDispatch(10) && !selfReference.unique()) { if(pauseDispatching_) { dispatchSuspendLock_.lock(); diff --git a/src/CommonAPI/DBus/DBusConnection.h b/src/CommonAPI/DBus/DBusConnection.h index 8a2c091..145d653 100644 --- a/src/CommonAPI/DBus/DBusConnection.h +++ b/src/CommonAPI/DBus/DBusConnection.h @@ -115,7 +115,7 @@ class DBusConnection: public DBusProxyConnection, public std::enable_shared_from bool singleDispatch(); private: - void dispatch(std::shared_ptr&& selfReference); + void dispatch(std::shared_ptr& selfReference); void suspendDispatching() const; void resumeDispatching() const; -- 2.7.4