diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-20 12:14:33 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-20 12:14:33 +0000 |
commit | c789cf1c6f3947283aeb34acb5a22e6204f8f6f5 (patch) | |
tree | 8f5a0c1758ee49a22562b2ec715a5df4f5141792 /src/pdf/SkPDFStream.cpp | |
parent | f5181a496d79b0dbe4d96195157b25308437cf93 (diff) |
helpers for append and insert when the value is a POD.
reduces code-size and perf: fewer refs/unrefs
git-svn-id: http://skia.googlecode.com/svn/trunk@1909 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/pdf/SkPDFStream.cpp')
-rw-r--r-- | src/pdf/SkPDFStream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFStream.cpp b/src/pdf/SkPDFStream.cpp index 11afa32321..790cfaec3d 100644 --- a/src/pdf/SkPDFStream.cpp +++ b/src/pdf/SkPDFStream.cpp @@ -33,7 +33,7 @@ SkPDFStream::SkPDFStream(SkStream* stream) { fPlainData = stream; fLength = fPlainData->getLength(); } - insert("Length", new SkPDFInt(fLength))->unref(); + insertInt("Length", fLength); } SkPDFStream::~SkPDFStream() { |