Diffstat (limited to 'noncore/net/mail/taskbarapplet/mailappletimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailappletimpl.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/net/mail/taskbarapplet/mailappletimpl.cpp b/noncore/net/mail/taskbarapplet/mailappletimpl.cpp index 26f6a6f..c01a674 100644 --- a/noncore/net/mail/taskbarapplet/mailappletimpl.cpp +++ b/noncore/net/mail/taskbarapplet/mailappletimpl.cpp | |||
@@ -3,7 +3,6 @@ | |||
3 | 3 | ||
4 | MailAppletImpl::MailAppletImpl() | 4 | MailAppletImpl::MailAppletImpl() |
5 | : m_mailApplet(0), ref(0) { | 5 | : m_mailApplet(0), ref(0) { |
6 | |||
7 | } | 6 | } |
8 | 7 | ||
9 | MailAppletImpl::~MailAppletImpl() { | 8 | MailAppletImpl::~MailAppletImpl() { |
@@ -11,7 +10,8 @@ MailAppletImpl::~MailAppletImpl() { | |||
11 | } | 10 | } |
12 | 11 | ||
13 | QWidget *MailAppletImpl::applet(QWidget *parent) { | 12 | QWidget *MailAppletImpl::applet(QWidget *parent) { |
14 | if (!m_mailApplet) m_mailApplet = new MailApplet(parent); | 13 | if (!m_mailApplet) |
14 | m_mailApplet = new MailApplet(parent); | ||
15 | return m_mailApplet; | 15 | return m_mailApplet; |
16 | } | 16 | } |
17 | 17 | ||
@@ -21,10 +21,13 @@ int MailAppletImpl::position() const { | |||
21 | 21 | ||
22 | QRESULT MailAppletImpl::queryInterface(const QUuid &uuid, QUnknownInterface **iface) { | 22 | QRESULT MailAppletImpl::queryInterface(const QUuid &uuid, QUnknownInterface **iface) { |
23 | *iface = 0; | 23 | *iface = 0; |
24 | if (uuid == IID_QUnknown) *iface = this; | 24 | if (uuid == IID_QUnknown) |
25 | else if (uuid == IID_TaskbarApplet) *iface = this; | 25 | *iface = this; |
26 | else if (uuid == IID_TaskbarApplet) | ||
27 | *iface = this; | ||
26 | 28 | ||
27 | if (*iface) (*iface)->addRef(); | 29 | if (*iface) |
30 | (*iface)->addRef(); | ||
28 | return QS_OK; | 31 | return QS_OK; |
29 | } | 32 | } |
30 | 33 | ||