Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(139)

Issue 6870050: Insert in middle of SkTInternalLList and SkTLList, SkTLList in-place cons. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by bsalomon
Modified:
11 years, 7 months ago
Reviewers:
robertphillips
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Insert in middle of SkTInternalLList and SkTLList, in place cons for SkTLList. R=robertphillips@google.com Committed: https://code.google.com/p/skia/source/detail?r=6649

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -7 lines) Patch
M include/core/SkTInternalLList.h View 1 2 2 chunks +68 lines, -0 lines 2 comments Download
M src/core/SkTLList.h View 7 chunks +80 lines, -2 lines 0 comments Download
M tests/LListTest.cpp View 1 3 chunks +89 lines, -5 lines 2 comments Download

Messages

Total messages: 3
bsalomon
11 years, 7 months ago (2012-12-03 18:43:50 UTC) #1
robertphillips
LGTM + 2 suggestions https://codereview.appspot.com/6870050/diff/3001/include/core/SkTInternalLList.h File include/core/SkTInternalLList.h (right): https://codereview.appspot.com/6870050/diff/3001/include/core/SkTInternalLList.h#newcode236 include/core/SkTInternalLList.h:236: } I'm surprised this isn't ...
11 years, 7 months ago (2012-12-03 18:56:52 UTC) #2
bsalomon
11 years, 7 months ago (2012-12-03 19:05:25 UTC) #3
https://codereview.appspot.com/6870050/diff/3001/include/core/SkTInternalLList.h
File include/core/SkTInternalLList.h (right):

https://codereview.appspot.com/6870050/diff/3001/include/core/SkTInternalLLis...
include/core/SkTInternalLList.h:236: }
On 2012/12/03 18:56:52, robertphillips wrote:
> I'm surprised this isn't symmetric:
> if (NULL == item->fNext) {
>    SkASSERT(fTail == item);
> } else {
>    SkASSERT(item->fNext->fPrev == item);
> }

Done.

https://codereview.appspot.com/6870050/diff/3001/tests/LListTest.cpp
File tests/LListTest.cpp (right):

https://codereview.appspot.com/6870050/diff/3001/tests/LListTest.cpp#newcode237
tests/LListTest.cpp:237: 
On 2012/12/03 18:56:52, robertphillips wrote:
> NULL != here and in next 3 locations?

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b