diff options
Diffstat (limited to 'src/gdbus/test/example.cpp')
-rw-r--r-- | src/gdbus/test/example.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gdbus/test/example.cpp b/src/gdbus/test/example.cpp index 32e09f15..be155759 100644 --- a/src/gdbus/test/example.cpp +++ b/src/gdbus/test/example.cpp @@ -65,7 +65,7 @@ class Test { static gboolean method_idle(gpointer data) { - std::auto_ptr<async> mydata(static_cast<async *>(data)); + std::unique_ptr<async> mydata(static_cast<async *>(data)); std::cout << "replying to method_async" << std::endl; mydata->m_result->done("Hello World, asynchronous and delayed"); return false; @@ -269,7 +269,7 @@ int main(int argc, char *argv[]) exit(1); } - std::auto_ptr<DBusTest> test(new DBusTest(conn)); + std::unique_ptr<DBusTest> test(new DBusTest(conn)); test->activate(); test->signal(42, "hello world", std::map<int32_t, int32_t>()); test->deactivate(); |