summaryrefslogtreecommitdiffstats
path: root/src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-04-03 08:04:34 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-09 07:13:58 +0200
commit55c225428f419886f19ab853b62d603bc453ceb7 (patch)
treeee30fecea5c34574d3a042d2cbe67836cc88f992 /src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp
parentf1049911802e95b2225586ed35c631da71660f9b (diff)
Doc: fix compilability of the example
QDBusConnection::registerObject takes an object. Task-number: QTBUG-30483 Change-Id: Ibebec48e8c9d3df0d3fa1177c3887ea5c75e8623 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp')
-rw-r--r--src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp b/src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp
index 35fe0a5a3f..4511dcb346 100644
--- a/src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp
+++ b/src/dbus/doc/snippets/code/doc_src_qdbusadaptors.cpp
@@ -146,7 +146,7 @@ int main(int argc, char **argv)
new MainApplicationAdaptor(app);
// connect to D-Bus and register as an object:
- QDBusConnection::sessionBus().registerObject("/MainApplication", app);
+ QDBusConnection::sessionBus().registerObject("/MainApplication", &app);
// add main window, etc.
[...]