summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-03-02 04:07:59 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-04-02 10:26:30 -0300
commit4983148213e9b971a50205baed1715a2954770fa (patch)
tree63186d2233e027253a44873456ff0d8f8b6d1db5 /examples
parent112ec8ecf9bdb5d62e3379ed73a9a26d4b29b36c (diff)
BaseConnectionManager: Make it a shared ptr.
Diffstat (limited to 'examples')
-rw-r--r--examples/cm/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cm/main.cpp b/examples/cm/main.cpp
index de0d09e0..b8dde898 100644
--- a/examples/cm/main.cpp
+++ b/examples/cm/main.cpp
@@ -17,7 +17,7 @@ int main(int argc, char **argv)
Tp::enableDebug(true);
Tp::enableWarnings(true);
- BaseConnectionManager *cm = new BaseConnectionManager(
+ BaseConnectionManagerPtr cm = BaseConnectionManager::create(
QDBusConnection::sessionBus(), QLatin1String("TpQtExampleCM"));
cm->registerObject();