[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdeconnect-kde/sslrefactor] plasmoid/declarativeplugin: Fixed warning
From:       Albert Vaca <albertvaka () gmail ! com>
Date:       2016-05-31 18:10:40
Message-ID: E1b7o7k-00023e-Pa () scm ! kde ! org
[Download RAW message or body]

Git commit 59f69856d6182979197b5dd5b886699d336d1b6d by Albert Vaca.
Committed on 31/05/2016 at 18:10.
Pushed by albertvaka into branch 'sslrefactor'.

Fixed warning

M  +3    -3    plasmoid/declarativeplugin/objectfactory.h

http://commits.kde.org/kdeconnect-kde/59f69856d6182979197b5dd5b886699d336d1=
b6d

diff --git a/plasmoid/declarativeplugin/objectfactory.h b/plasmoid/declarat=
iveplugin/objectfactory.h
index 075f08b..c7ab0d6 100644
--- a/plasmoid/declarativeplugin/objectfactory.h
+++ b/plasmoid/declarativeplugin/objectfactory.h
@@ -20,10 +20,10 @@ public:
     ObjectFactory(QObject* parent, Func2 f2) : QObject(parent), m_f0(nullp=
tr), m_f1(nullptr), m_f2(f2) {}
     =

     virtual ~ObjectFactory() {}
-    =

-    =

+
     Q_INVOKABLE QObject* create() {
-        if (m_f0) return m_f0(); return nullptr;
+        if (m_f0) return m_f0();
+        return nullptr;
     }
     =

     Q_INVOKABLE QObject* create(const QVariant &arg1) {

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic