[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
darin
darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:58:39 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 3a15b1d07d4a58dd77610d4a2a91864cf9ea6084
Author: darin <darin at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Mar 25 06:19:41 2002 +0000
* src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst), (KWQListImpl::getLast):
Apparently getLast needs to handle cases where the list is empty. Since
getFirst didn't handle it either, I added a check in both cases.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index a3c1e9c..f9331be 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,11 @@
2002-03-24 Darin Adler <darin at apple.com>
+ * src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst), (KWQListImpl::getLast):
+ Apparently getLast needs to handle cases where the list is empty. Since
+ getFirst didn't handle it either, I added a check in both cases.
+
+2002-03-24 Darin Adler <darin at apple.com>
+
Add tail pointer to KWQListImpl, since that shows up on so many profiles.
* src/kwq/KWQListImpl.mm: (KWQListImpl::KWQListPrivate::copyList): Return
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index a3c1e9c..f9331be 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,11 @@
2002-03-24 Darin Adler <darin at apple.com>
+ * src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst), (KWQListImpl::getLast):
+ Apparently getLast needs to handle cases where the list is empty. Since
+ getFirst didn't handle it either, I added a check in both cases.
+
+2002-03-24 Darin Adler <darin at apple.com>
+
Add tail pointer to KWQListImpl, since that shows up on so many profiles.
* src/kwq/KWQListImpl.mm: (KWQListImpl::KWQListPrivate::copyList): Return
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index a3c1e9c..f9331be 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,11 @@
2002-03-24 Darin Adler <darin at apple.com>
+ * src/kwq/KWQListImpl.mm: (KWQListImpl::getFirst), (KWQListImpl::getLast):
+ Apparently getLast needs to handle cases where the list is empty. Since
+ getFirst didn't handle it either, I added a check in both cases.
+
+2002-03-24 Darin Adler <darin at apple.com>
+
Add tail pointer to KWQListImpl, since that shows up on so many profiles.
* src/kwq/KWQListImpl.mm: (KWQListImpl::KWQListPrivate::copyList): Return
diff --git a/WebCore/kwq/KWQListImpl.mm b/WebCore/kwq/KWQListImpl.mm
index 278d627..349cf9d 100644
--- a/WebCore/kwq/KWQListImpl.mm
+++ b/WebCore/kwq/KWQListImpl.mm
@@ -441,12 +441,12 @@ bool KWQListImpl::removeRef(const void *item, bool deleteItem)
void *KWQListImpl::getFirst() const
{
- return d->head->data;
+ return d->head ? d->head->data : 0;
}
void *KWQListImpl::getLast() const
{
- return d->tail->data;
+ return d->tail ? d->tail->data : 0;
}
void *KWQListImpl::current() const
diff --git a/WebCore/src/kwq/KWQListImpl.mm b/WebCore/src/kwq/KWQListImpl.mm
index 278d627..349cf9d 100644
--- a/WebCore/src/kwq/KWQListImpl.mm
+++ b/WebCore/src/kwq/KWQListImpl.mm
@@ -441,12 +441,12 @@ bool KWQListImpl::removeRef(const void *item, bool deleteItem)
void *KWQListImpl::getFirst() const
{
- return d->head->data;
+ return d->head ? d->head->data : 0;
}
void *KWQListImpl::getLast() const
{
- return d->tail->data;
+ return d->tail ? d->tail->data : 0;
}
void *KWQListImpl::current() const
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list