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 @@ -4,5 +4,4 @@ MailAppletImpl::MailAppletImpl() : m_mailApplet(0), ref(0) { - } @@ -12,5 +11,6 @@ MailAppletImpl::~MailAppletImpl() { QWidget *MailAppletImpl::applet(QWidget *parent) { - if (!m_mailApplet) m_mailApplet = new MailApplet(parent); + if (!m_mailApplet) + m_mailApplet = new MailApplet(parent); return m_mailApplet; } @@ -22,8 +22,11 @@ int MailAppletImpl::position() const { QRESULT MailAppletImpl::queryInterface(const QUuid &uuid, QUnknownInterface **iface) { *iface = 0; - if (uuid == IID_QUnknown) *iface = this; - else if (uuid == IID_TaskbarApplet) *iface = this; + if (uuid == IID_QUnknown) + *iface = this; + else if (uuid == IID_TaskbarApplet) + *iface = this; - if (*iface) (*iface)->addRef(); + if (*iface) + (*iface)->addRef(); return QS_OK; } |