OSDN Git Service

generic: misc cleanups
authorIvailo Monev <xakepa10@gmail.com>
Mon, 2 May 2016 16:45:19 +0000 (16:45 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 2 May 2016 17:00:14 +0000 (17:00 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
12 files changed:
akregator/src/akregator_part.cpp
bluedevil/src/kio/bluetooth/kiobluetooth.cpp
kget/conf/kget.kcfg
kget/core/scheduler.cpp
kget/core/urlchecker.cpp
kget/transfer-plugins/bittorrent/kget_bittorrentfactory.kcfg
kget/transfer-plugins/checksumsearch/kget_checksumsearchfactory.kcfg
kget/transfer-plugins/metalink/kget_metalinkfactory.kcfg
kget/transfer-plugins/mirrorsearch/kget_mirrorsearchfactory.kcfg
kget/transfer-plugins/mmsthreads/kget_mmsfactory.kcfg
kget/transfer-plugins/multisegmentkio/kget_multisegkiofactory.kcfg
libktorrent/src/peer/utmetadata.cpp

index 26727b6..9e1fd44 100644 (file)
@@ -216,7 +216,6 @@ Part::Part( QWidget *parentWidget, QObject *parent, const QVariantList& )
     m_extension = new BrowserExtension(this, "ak_extension");
 
     connect(Kernel::self()->frameManager(), SIGNAL(signalCaptionChanged(QString)), this, SIGNAL(setWindowCaption(QString)));
-    connect(Kernel::self()->frameManager(), SIGNAL(signalStatusText(QString)), this, SLOT(slotSetStatusText(QString)));
     connect(Kernel::self()->frameManager(), SIGNAL(signalLoadingProgress(int)), m_extension, SIGNAL(loadingProgress(int)));
     connect(Kernel::self()->frameManager(), SIGNAL(signalCanceled(QString)), this, SIGNAL(canceled(QString)));
     connect(Kernel::self()->frameManager(), SIGNAL(signalStarted()), this, SLOT(slotStarted()));
index 4287b21..e690f28 100644 (file)
@@ -30,7 +30,6 @@
 #include <KComponentData>
 #include <KCmdLineArgs>
 #include <KAboutData>
-#include <KProcess>
 #include <KApplication>
 #include <KLocale>
 #include <kdemacros.h>
index a50d8f9..1e3dbfc 100644 (file)
@@ -4,6 +4,7 @@
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
 
+  <include>kdemacros.h</include>
   <include>KGlobalSettings</include>
 
   <kcfgfile name="kgetrc"/>
index de97445..9711add 100644 (file)
@@ -15,7 +15,7 @@
 #include "settings.h"
 
 #include <algorithm>
-#include <boost/bind/bind.hpp>
+#include <boost/bind.hpp>
 
 #include <KDebug>
 
index 6d55179..4fc0f55 100644 (file)
@@ -29,7 +29,7 @@
 #include "settings.h"
 
 #include <algorithm>
-#include <boost/bind/bind.hpp>
+#include <boost/bind.hpp>
 
 #include <QtCore/QFileInfo>
 #include <QtGui/QCheckBox>
index a35081d..f6d11a5 100644 (file)
@@ -3,6 +3,7 @@
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+  <include>kdemacros.h</include>
   <kcfgfile name="kget_bittorrentfactory.rc"/>
   <group name="General">
     <entry name="UploadLimit" type="Int">
index 78fda2b..a6327f9 100644 (file)
@@ -3,6 +3,7 @@
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+  <include>kdemacros.h</include>
   <kcfgfile name="kget_checksumsearchfactory.rc"/>
    <group name="ChecksumSearch">
     <entry name="SearchStrings" type="StringList">
index 5357ba4..2949387 100644 (file)
@@ -3,6 +3,7 @@
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+  <include>kdemacros.h</include>
   <kcfgfile name="kget_metalinkfactory.rc"/>
   <group name="Files">
     <entry name="SimultanousFiles" type="Int">
index 8a1661e..d08b680 100644 (file)
@@ -3,6 +3,7 @@
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+  <include>kdemacros.h</include>
   <kcfgfile name="kget_mirrorsearchfactory.rc"/>
    <group name="SearchEngines">
     <entry name="UseSearchEngines" type="Bool">
index 484b04a..51bd5ab 100644 (file)
@@ -3,6 +3,7 @@
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+  <include>kdemacros.h</include>
   <kcfgfile name="kget_mmsfactory.rc"/>
   <group name="Threads">
     <entry name="Threads" type="Int">
index 4266042..7f64c69 100644 (file)
@@ -3,6 +3,7 @@
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                           http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
+  <include>kdemacros.h</include>
   <kcfgfile name="kget_multisegkiofactory.rc"/>
   <group name="Segments">
     <entry name="Segments" type="Int">
index 0b4b11b..07518d6 100644 (file)
@@ -50,7 +50,7 @@ namespace bt
                {
                        BDecoder dec(tmp,false,2);
                        node = dec.decode();
-                       if (!node || !node->getType() == BNode::DICT)
+                       if (!node || node->getType() != BNode::DICT)
                        {
                                delete node;
                                return;