Minor QWebNetworkRequet API fixlet
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2007 13:04:29 +0000 (13:04 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jun 2007 13:04:29 +0000 (13:04 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23495 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebnetworkinterface.cpp
WebKitQt/Api/qwebnetworkinterface.h
WebKitQt/ChangeLog

index eb6dd175bbefe30666ac7c2a157eb28c1bebdade..38a04d9bb28c27ecaeaec9976c50e4c740468bd4 100644 (file)
@@ -132,8 +132,8 @@ QWebNetworkRequest &QWebNetworkRequest::operator=(const QWebNetworkRequest &othe
 /*!
   \internal
 */
-QWebNetworkRequest::QWebNetworkRequest(QWebNetworkRequestPrivate *priv)
-    : d(new QWebNetworkRequestPrivate(*priv))
+QWebNetworkRequest::QWebNetworkRequest(const QWebNetworkRequestPrivate &priv)
+    : d(new QWebNetworkRequestPrivate(priv))
 {
 }
 
@@ -259,7 +259,7 @@ QHttpRequestHeader QWebNetworkJob::httpHeader() const
 */
 QWebNetworkRequest QWebNetworkJob::request() const
 {
-    return QWebNetworkRequest(&d->request);
+    return QWebNetworkRequest(d->request);
 }
 
 /*!
index 36d19c4d09a8f90b9f79978096503b47845b0a4c..3bf5402d97287ac03cfc7a368b21b49f141697b2 100644 (file)
@@ -65,7 +65,7 @@ public:
     void setPostData(const QByteArray &data);
 
 private:
-    explicit QWebNetworkRequest(QWebNetworkRequestPrivate *priv);
+    explicit QWebNetworkRequest(const QWebNetworkRequestPrivate &priv);
     explicit QWebNetworkRequest(const WebCore::ResourceRequest &request);
     friend class QWebNetworkJob;
     friend class WebCore::FrameLoaderClientQt;
index 7ac450b577797c5015ab5a07630c348d5cd146ee..cf97bf6b4e17560456db3f1bdb88fcb2912faff1 100644 (file)
@@ -1,3 +1,12 @@
+2007-06-13  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Lars.
+
+        Minor QWebNetworkRequet API fixlet
+
+        * Api/qwebnetworkinterface.cpp:
+        * Api/qwebnetworkinterface.h:
+
 2007-06-13  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Lars.