From c310f1671cc08bed4d9de40f6526aeadf1739be8 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 8 Jun 2012 08:48:03 +0200 Subject: SSH: Add parent object to SshConnection constructor. There's no mandatory use of shared pointers anymore, so client code should be able to make use of QObject-based ownership. Change-Id: I2344ca66a40c310ef739b32502eb8471da98c03a Reviewed-by: Tobias Hunger --- src/libs/ssh/sshconnection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libs/ssh/sshconnection.cpp') diff --git a/src/libs/ssh/sshconnection.cpp b/src/libs/ssh/sshconnection.cpp index c6a1151d59..6f4cf24ec3 100644 --- a/src/libs/ssh/sshconnection.cpp +++ b/src/libs/ssh/sshconnection.cpp @@ -107,7 +107,8 @@ bool operator!=(const SshConnectionParameters &p1, const SshConnectionParameters // TODO: Mechanism for checking the host key. First connection to host: save, later: compare -SshConnection::SshConnection(const SshConnectionParameters &serverInfo) +SshConnection::SshConnection(const SshConnectionParameters &serverInfo, QObject *parent) + : QObject(parent) { doStaticInitializationsIfNecessary(); -- cgit v1.2.1