Bug #: 3823
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Jul 2005 10:05:08 +0000 (10:05 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 3 Jul 2005 10:05:08 +0000 (10:05 +0000)
Submitted by: eseidel
Reviewed by: mjs
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::setDocumentChanged): fixed to use new API
        * kwq/KWQKStaticDeleter.h:
        (KStaticDeleter::setObject): fixed to take 3rd argument
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3823

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9580 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_docimpl.cpp
WebCore/kwq/KWQKStaticDeleter.h

index 4fc6b343d74b3d36afc9b2a60c776380b3d69ea7..5e6a54dd00b694d13d564ef609a7446c8d34d88b 100644 (file)
@@ -1,3 +1,13 @@
+2005-07-03  Eric Seidel  <eseidel@apple.com>
+
+        Reviewed by mjs.
+
+        * khtml/xml/dom_docimpl.cpp: 
+        (DocumentImpl::setDocumentChanged): fixed to use new API
+        * kwq/KWQKStaticDeleter.h: 
+        (KStaticDeleter::setObject): fixed to take 3rd argument
+        http://bugzilla.opendarwin.org/show_bug.cgi?id=3823
+
 2005-07-03  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by mjs.
index e4ac8b989f722ad1266043bdf477df0bc66fd833..baed32220a291151371ba10f68979f99df9ce0f0 100644 (file)
@@ -1078,7 +1078,7 @@ TreeWalkerImpl *DocumentImpl::createTreeWalker(NodeImpl *root, unsigned long wha
 void DocumentImpl::setDocumentChanged(bool b)
 {
     if (!changedDocuments)
-        changedDocuments = s_changedDocumentsDeleter.setObject( new QPtrList<DocumentImpl>() );
+        changedDocuments = s_changedDocumentsDeleter.setObject(changedDocuments, new QPtrList<DocumentImpl>());
 
     if (b && !m_docChanged)
         changedDocuments->append(this);
index 7d14c0aeef17f68ee3e62284f82d88f8748a0a9a..5e61d4ef24b33a55ee7f63d24c73ebbd84e88953 100644 (file)
@@ -32,7 +32,7 @@
 
 template <class T> class KStaticDeleter {
 public:
-    T *setObject(T *ptr, bool array = false) { return ptr; }
+    T *setObject(T *&global, T *ptr, bool array = false) { global = ptr; return ptr; }
 };
 
 #endif