Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: src/pdf/SkPDFTypes.cpp

Issue 12315131: Make SkTDArray accessors const-friendly (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/pdf/SkPDFTypes.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkPDFCatalog.h" 10 #include "SkPDFCatalog.h"
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 fValue.reset(); 476 fValue.reset();
477 } 477 }
478 478
479 SkPDFDict::Iter::Iter(const SkPDFDict& dict) 479 SkPDFDict::Iter::Iter(const SkPDFDict& dict)
480 : fIter(dict.fValue.begin()), 480 : fIter(dict.fValue.begin()),
481 fStop(dict.fValue.end()) { 481 fStop(dict.fValue.end()) {
482 } 482 }
483 483
484 SkPDFName* SkPDFDict::Iter::next(SkPDFObject** value) { 484 SkPDFName* SkPDFDict::Iter::next(SkPDFObject** value) {
485 if (fIter != fStop) { 485 if (fIter != fStop) {
486 Rec* cur = fIter; 486 const Rec* cur = fIter;
487 fIter++; 487 fIter++;
488 *value = cur->value; 488 *value = cur->value;
489 return cur->key; 489 return cur->key;
490 } 490 }
491 *value = NULL; 491 *value = NULL;
492 return NULL; 492 return NULL;
493 } 493 }
OLDNEW
« no previous file with comments | « src/pdf/SkPDFTypes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698