diff options
author | halcanary <halcanary@google.com> | 2016-02-11 07:59:59 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-11 07:59:59 -0800 |
commit | 7001576c7160e20c9c9db2fbe947408989027d66 (patch) | |
tree | f349b8744cc86d24128c7a0c79b0bb77bb5d0691 /src/doc | |
parent | db6a254bdcf6884db172f716966d7787e0d6f264 (diff) |
SkDocument: remove use of SkTArray (part 1/3).
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1689683002
Review URL: https://codereview.chromium.org/1689683002
Diffstat (limited to 'src/doc')
-rw-r--r-- | src/doc/SkDocument_PDF.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/SkDocument_PDF.cpp b/src/doc/SkDocument_PDF.cpp index fb560ea1e3..a56de707fe 100644 --- a/src/doc/SkDocument_PDF.cpp +++ b/src/doc/SkDocument_PDF.cpp @@ -370,10 +370,11 @@ protected: fCanon.reset(); } - void setMetadata(const SkTArray<SkDocument::Attribute>& info, + void setMetadata(const SkDocument::Attribute info[], + int infoCount, const SkTime::DateTime* creationDate, const SkTime::DateTime* modifiedDate) override { - fMetadata.fInfo = info; + fMetadata.fInfo.reset(info, infoCount); fMetadata.fCreation.reset(clone(creationDate)); fMetadata.fModified.reset(clone(modifiedDate)); } |