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

Unified Diff: experimental/PdfViewer/pdfparser/native/SkPdfObject.h

Issue 19670019: pdfviewer: fix type3 font, make SkPdfObject::get parameter const (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/PdfViewer/SkPdfFont.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/PdfViewer/pdfparser/native/SkPdfObject.h
===================================================================
--- experimental/PdfViewer/pdfparser/native/SkPdfObject.h (revision 10286)
+++ experimental/PdfViewer/pdfparser/native/SkPdfObject.h (working copy)
@@ -372,7 +372,7 @@
// which will be used in code
// add function SkPdfFastNameKey key(const char* key);
// TODO(edisonn): setting the same key twike, will make the value undefined!
- bool set(SkPdfObject* key, SkPdfObject* value) {
+ bool set(const SkPdfObject* key, SkPdfObject* value) {
SkASSERT(fObjectType == kDictionary_PdfObjectType);
SkASSERT(key->fObjectType == kName_PdfObjectType);
@@ -402,7 +402,7 @@
return fMap->set((const char*)key, len, value);
}
- SkPdfObject* get(SkPdfObject* key) {
+ SkPdfObject* get(const SkPdfObject* key) {
SkASSERT(fObjectType == kDictionary_PdfObjectType);
SkASSERT(key->fObjectType == kName_PdfObjectType);
@@ -432,7 +432,7 @@
return ret;
}
- const SkPdfObject* get(SkPdfObject* key) const {
+ const SkPdfObject* get(const SkPdfObject* key) const {
SkASSERT(fObjectType == kDictionary_PdfObjectType);
SkASSERT(key->fObjectType == kName_PdfObjectType);
« no previous file with comments | « experimental/PdfViewer/SkPdfFont.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698