summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:44:56 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:44:56 +0100
commitad8ab01c115d3e1ec22ce649a54ab28609624b61 (patch)
tree2827caff6bfff03100fcb4ec47d0883d3d074649
parentCoding style (diff)
downloadrekonq-ad8ab01c115d3e1ec22ce649a54ab28609624b61.tar.xz
cppcheck round...
-rw-r--r--src/analyzer/networkanalyzer.cpp2
-rw-r--r--src/application.cpp1
-rw-r--r--src/bookmarks/bookmarkprovider.cpp2
-rw-r--r--src/findbar.cpp4
-rw-r--r--src/history/historymanager.h4
-rw-r--r--src/opensearch/opensearchengine.cpp2
-rw-r--r--src/opensearch/opensearchengine.h5
-rw-r--r--src/webview.h4
8 files changed, 12 insertions, 12 deletions
diff --git a/src/analyzer/networkanalyzer.cpp b/src/analyzer/networkanalyzer.cpp
index a3675dfa..3101dae5 100644
--- a/src/analyzer/networkanalyzer.cpp
+++ b/src/analyzer/networkanalyzer.cpp
@@ -45,6 +45,7 @@
#include <QSignalMapper>
#include <QClipboard>
+
NetworkAnalyzer::NetworkAnalyzer(QWidget *parent)
: QWidget(parent)
, _mapper(new QSignalMapper(this))
@@ -76,6 +77,7 @@ NetworkAnalyzer::~NetworkAnalyzer()
{
}
+
void NetworkAnalyzer::popupContextMenu(const QPoint& pos)
{
if (_requestList->topLevelItemCount() >= 1)
diff --git a/src/application.cpp b/src/application.cpp
index 66d1384e..97d9a571 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -271,7 +271,6 @@ HistoryManager *Application::historyManager()
if (m_historyManager.isNull())
{
m_historyManager = new HistoryManager(instance());
- QWebHistoryInterface::setDefaultInterface(m_historyManager.data());
}
return m_historyManager.data();
}
diff --git a/src/bookmarks/bookmarkprovider.cpp b/src/bookmarks/bookmarkprovider.cpp
index 6d7a6440..1bcff5eb 100644
--- a/src/bookmarks/bookmarkprovider.cpp
+++ b/src/bookmarks/bookmarkprovider.cpp
@@ -102,6 +102,8 @@ BookmarkProvider::~BookmarkProvider()
KActionMenu* BookmarkProvider::bookmarkActionMenu(QWidget *parent)
{
+ kDebug() << "creating a bookmarks action menu...";
+
KMenu *menu = new KMenu(parent);
KActionMenu *bookmarkActionMenu = new KActionMenu(menu);
bookmarkActionMenu->setMenu(menu);
diff --git a/src/findbar.cpp b/src/findbar.cpp
index c1f170cd..aefdffe1 100644
--- a/src/findbar.cpp
+++ b/src/findbar.cpp
@@ -118,10 +118,6 @@ FindBar::FindBar(MainWindow *window)
FindBar::~FindBar()
{
- delete m_lineEdit;
- delete m_hideTimer;
- delete m_matchCase;
- delete m_highlightAll;
}
diff --git a/src/history/historymanager.h b/src/history/historymanager.h
index a7a7661e..eb8d78d7 100644
--- a/src/history/historymanager.h
+++ b/src/history/historymanager.h
@@ -56,7 +56,9 @@
class HistoryItem
{
public:
- HistoryItem() {}
+ HistoryItem()
+ {}
+
explicit HistoryItem(const QString &u,
const QDateTime &d = QDateTime(),
const QString &t = QString()
diff --git a/src/opensearch/opensearchengine.cpp b/src/opensearch/opensearchengine.cpp
index dcd0f8b4..cfd9b4b6 100644
--- a/src/opensearch/opensearchengine.cpp
+++ b/src/opensearch/opensearchengine.cpp
@@ -30,7 +30,7 @@
// Self Includes
#include "opensearchengine.h"
-#include "suggestionparser.h"
+#include "opensearchengine.moc"
// Qt Includes
#include <QtCore/QRegExp>
diff --git a/src/opensearch/opensearchengine.h b/src/opensearch/opensearchengine.h
index 8194cfb2..cc826aec 100644
--- a/src/opensearch/opensearchengine.h
+++ b/src/opensearch/opensearchengine.h
@@ -33,6 +33,8 @@
// Rekonq Includes
#include "rekonq_defines.h"
+
+// Local Includes
#include "suggestionparser.h"
// KDE Includes
@@ -43,9 +45,6 @@
#include <QtGui/QImage>
-// Forward Declarations
-
-
class OpenSearchEngine : public QObject
{
Q_OBJECT
diff --git a/src/webview.h b/src/webview.h
index 7f981abb..b954c17e 100644
--- a/src/webview.h
+++ b/src/webview.h
@@ -66,7 +66,7 @@ protected:
void wheelEvent(QWheelEvent *event);
void dropEvent(QDropEvent *event);
-private slots:
+private Q_SLOTS:
void search();
void printFrame();
@@ -87,7 +87,7 @@ private slots:
void stopScrolling();
void changeWindowIcon();
-signals:
+Q_SIGNALS:
void loadUrl(const KUrl &, const Rekonq::OpenType &);
void zoomChanged(int);
void openPreviousInHistory();