summaryrefslogtreecommitdiff
path: root/src/gdbusxx/gdbus-cxx-bridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gdbusxx/gdbus-cxx-bridge.cpp')
-rw-r--r--src/gdbusxx/gdbus-cxx-bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdbusxx/gdbus-cxx-bridge.cpp b/src/gdbusxx/gdbus-cxx-bridge.cpp
index 238b52f0..a170b264 100644
--- a/src/gdbusxx/gdbus-cxx-bridge.cpp
+++ b/src/gdbusxx/gdbus-cxx-bridge.cpp
@@ -484,7 +484,7 @@ Watch::~Watch()
void getWatch(ExtractArgs &context,
boost::shared_ptr<Watch> &value)
{
- std::auto_ptr<Watch> watch(new Watch(context.m_conn));
+ std::unique_ptr<Watch> watch(new Watch(context.m_conn));
watch->activate((context.m_msg && *context.m_msg) ?
g_dbus_message_get_sender(*context.m_msg) :
context.m_sender);