aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/PdfViewer/pdfparser
diff options
context:
space:
mode:
authorGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-23 19:43:48 +0000
committerGravatar edisonn@google.com <edisonn@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-07-23 19:43:48 +0000
commit2fd5d36ea6e134647aae0fbd35195500723851c3 (patch)
tree181d240aa7d9b144302fa71a1bc20e200ce78e93 /experimental/PdfViewer/pdfparser
parente94a7d293632416c7085331ee991e8ad3a1b8373 (diff)
pdfviewer: fix type3 font, make SkPdfObject::get parameter const
Review URL: https://codereview.chromium.org/19670019 git-svn-id: http://skia.googlecode.com/svn/trunk@10289 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'experimental/PdfViewer/pdfparser')
-rw-r--r--experimental/PdfViewer/pdfparser/native/SkPdfObject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/experimental/PdfViewer/pdfparser/native/SkPdfObject.h b/experimental/PdfViewer/pdfparser/native/SkPdfObject.h
index f7171191c8..c670ac8dca 100644
--- a/experimental/PdfViewer/pdfparser/native/SkPdfObject.h
+++ b/experimental/PdfViewer/pdfparser/native/SkPdfObject.h
@@ -372,7 +372,7 @@ public:
// 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 @@ public:
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 @@ public:
return ret;
}
- const SkPdfObject* get(SkPdfObject* key) const {
+ const SkPdfObject* get(const SkPdfObject* key) const {
SkASSERT(fObjectType == kDictionary_PdfObjectType);
SkASSERT(key->fObjectType == kName_PdfObjectType);