aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-02-11 07:59:59 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-11 07:59:59 -0800
commit7001576c7160e20c9c9db2fbe947408989027d66 (patch)
treef349b8744cc86d24128c7a0c79b0bb77bb5d0691 /src/doc
parentdb6a254bdcf6884db172f716966d7787e0d6f264 (diff)
SkDocument: remove use of SkTArray (part 1/3).
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/SkDocument_PDF.cpp5
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));
}