aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/codec
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2018-06-11 10:45:26 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-11 15:55:31 +0000
commit79aea6a147f87994963ea9a464647cd64e8d475d (patch)
tree92676711aa95882332aa4e322a3cca2d6b3f58d0 /src/codec
parentf7c380e9c9f97269f1c6de1ddbb73fc1f82bcb44 (diff)
trim #include <new> from SkPostConfig.h
Change-Id: I693ddcd4ade101ba4eb4102e03adce183aa1d672 Reviewed-on: https://skia-review.googlesource.com/133829 Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/SkIcoCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkIcoCodec.cpp b/src/codec/SkIcoCodec.cpp
index af9125565a..8ff408815b 100644
--- a/src/codec/SkIcoCodec.cpp
+++ b/src/codec/SkIcoCodec.cpp
@@ -110,7 +110,7 @@ std::unique_ptr<SkCodec> SkIcoCodec::MakeFromStream(std::unique_ptr<SkStream> st
// Now will construct a candidate codec for each of the embedded images
uint32_t bytesRead = kIcoDirectoryBytes + numImages * kIcoDirEntryBytes;
std::unique_ptr<SkTArray<std::unique_ptr<SkCodec>, true>> codecs(
- new (SkTArray<std::unique_ptr<SkCodec>, true>)(numImages));
+ new SkTArray<std::unique_ptr<SkCodec>, true>(numImages));
for (uint32_t i = 0; i < numImages; i++) {
uint32_t offset = directoryEntries[i].offset;
uint32_t size = directoryEntries[i].size;