diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebKit/qt/Api/qcookiejar.cpp | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebKit/qt/Api/qcookiejar.cpp')
-rw-r--r-- | WebKit/qt/Api/qcookiejar.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/WebKit/qt/Api/qcookiejar.cpp b/WebKit/qt/Api/qcookiejar.cpp index a6cbdab..a02fe78 100644 --- a/WebKit/qt/Api/qcookiejar.cpp +++ b/WebKit/qt/Api/qcookiejar.cpp @@ -17,7 +17,7 @@ Boston, MA 02110-1301, USA. */ - +#include "config.h" #include "qcookiejar.h" #include <QCoreApplication> uint qHash(const QUrl&); @@ -26,7 +26,8 @@ uint qHash(const QUrl&); class QCookieJarPrivate { public: - QCookieJarPrivate() { + QCookieJarPrivate() + { enabled = true; } bool enabled; @@ -34,7 +35,8 @@ class QCookieJarPrivate { }; -uint qHash(const QUrl& url) { +uint qHash(const QUrl& url) +{ return qHash(url.toString()); } @@ -85,7 +87,7 @@ static void gCleanupJar() } -void QCookieJar::setCookieJar(QCookieJar *jar) +void QCookieJar::setCookieJar(QCookieJar* jar) { if (!gRoutineAdded) { qAddPostRoutine(gCleanupJar); @@ -96,10 +98,10 @@ void QCookieJar::setCookieJar(QCookieJar *jar) } -QCookieJar *QCookieJar::cookieJar() +QCookieJar* QCookieJar::cookieJar() { - if (!gJar) { + if (!gJar) setCookieJar(new QCookieJar); - } + return gJar; } |