From 71de98a78ee727173e54cc00fab5ece4de579a58 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 6 Aug 2009 09:54:17 +0200 Subject: Some coding trivial fixes --- src/cookiejar.cpp | 8 ++++---- src/cookiejar.h | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/cookiejar.cpp b/src/cookiejar.cpp index 5146191d..aed1afd2 100644 --- a/src/cookiejar.cpp +++ b/src/cookiejar.cpp @@ -51,9 +51,9 @@ CookieJar::CookieJar(QObject* parent) : QNetworkCookieJar(parent) - , m_windowId(10) //m_windowId is important else doesn't connect with KCookieServer + , m_windowId(10) // m_windowId is important else doesn't connect with KCookieServer (yeah!) + , m_kcookiejar(new QDBusInterface("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer")) { - m_kcookiejar = new QDBusInterface("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer"); } @@ -98,7 +98,7 @@ bool CookieJar::setCookiesFromUrl(const QList & cookieList, cons void CookieJar::setWindowId(qlonglong id) { - m_windowId=id; + m_windowId = id; } @@ -110,4 +110,4 @@ void CookieJar::clear() kWarning() << "Unable to delete all the cookies as requested."; return; } -} \ No newline at end of file +} diff --git a/src/cookiejar.h b/src/cookiejar.h index 5504cf3c..f78a9662 100644 --- a/src/cookiejar.h +++ b/src/cookiejar.h @@ -30,11 +30,13 @@ // Qt Includes #include -#include + +#include // Forward Declarations class QUrl; + class CookieJar : public QNetworkCookieJar { Q_OBJECT -- cgit v1.2.1