From 7cc93bcc4b97da31aebf762b615c244f5fc7b4eb Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 4 Dec 2013 14:51:31 +0000 Subject: 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 --- include/core/SkTInternalLList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/core/SkTInternalLList.h') 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); -- cgit v1.2.3