diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-04 14:51:31 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-04 14:51:31 +0000 |
commit | 7cc93bcc4b97da31aebf762b615c244f5fc7b4eb (patch) | |
tree | 028496b1b4c4bc3be209c4face329b48a9f799d1 /include | |
parent | 1735d6696e9a941925e6ca352849307d698ef139 (diff) |
Make SkTInternalLList::validate validate all nodes
Make SkTInternalLList::validate validate all nodes, including the
first one.
R=mtklein@google.com, bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/104553002
git-svn-id: http://skia.googlecode.com/svn/trunk@12479 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkTInternalLList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTInternalLList.h b/include/core/SkTInternalLList.h index a6b6f15353..0b67d4a766 100644 --- a/include/core/SkTInternalLList.h +++ b/include/core/SkTInternalLList.h @@ -227,7 +227,7 @@ public: void validate() const { SkASSERT(!fHead == !fTail); Iter iter; - for (T* item = iter.init(*this, Iter::kHead_IterStart); NULL != (item = iter.next()); ) { + for (T* item = iter.init(*this, Iter::kHead_IterStart); NULL != item; item = iter.next()) { SkASSERT(this->isInList(item)); if (NULL == item->fPrev) { SkASSERT(fHead == item); |