| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |