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

List:       kde-commits
Subject:    [kdelibs/sebas/kplugins] staging/kservice/src/plugin: Clean up from debug output
From:       Sebastian_Kügler <sebas () kde ! org>
Date:       2013-07-01 2:09:38
Message-ID: E1UtTYg-0007cO-4z () scm ! kde ! org
[Download RAW message or body]

Git commit f1c42fce748bb47b8fcb896c972f3da79109f427 by Sebastian Kügler.
Committed on 01/07/2013 at 00:35.
Pushed by sebas into branch 'sebas/kplugins'.

Clean up from debug output

M  +0    -11   staging/kservice/src/plugin/kpluginfactory.h

http://commits.kde.org/kdelibs/f1c42fce748bb47b8fcb896c972f3da79109f427

diff --git a/staging/kservice/src/plugin/kpluginfactory.h \
b/staging/kservice/src/plugin/kpluginfactory.h index 1be2b15..00dabf0 100644
--- a/staging/kservice/src/plugin/kpluginfactory.h
+++ b/staging/kservice/src/plugin/kpluginfactory.h
@@ -30,9 +30,6 @@
 #include <ksharedconfig.h> // for source compat
 #include <kexportplugin.h>
 
-#include <iostream>
-using namespace std;
-
 class KPluginFactoryPrivate;
 namespace KParts { class Part; }
 
@@ -311,7 +308,6 @@ public:
 #ifndef KDE_NO_DEPRECATED
     KSERVICE_DEPRECATED QObject *create(QObject *parent = 0, const char *classname = \
"QObject", const QStringList &args = QStringList())  {
-        cout << " kpf deprecated create" << endl;
         return create(classname, 0, parent, stringListToVariantList(args), \
QString());  }
 #endif
@@ -421,14 +417,12 @@ protected:
             p = qobject_cast<ParentType *>(parent);
             Q_ASSERT(p);
         }
-        cout << " KPluginFactory::createInstance :" << endl;
         return new impl(p, args);
     }
 
     template<class impl>
     static QObject *createPartInstance(QWidget *parentWidget, QObject *parent, const \
QVariantList &args)  {
-        cout << " KPluginFactory::createPartInstance :" << endl;
         return new impl(parentWidget, parent, args);
     }
 
@@ -483,11 +477,6 @@ inline T *KPluginFactory::create(QWidget *parentWidget, QObject \
*parent, const Q  if (!t) {
         delete o;
     }
-    if (!o) {
-        cout << " kpf o is invalid, som is:" << o->staticMetaObject.className() << \
                endl;
-    } else {
-        cout << " kpf o is VALID :) som is:" << o->staticMetaObject.className() << \
                endl;
-    }
     return t;
 }
 


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

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