Index: src/ports/SkOSFile_posix.cpp |
diff --git a/src/ports/SkOSFile_posix.cpp b/src/ports/SkOSFile_posix.cpp |
index b7cf583440ff7bd1e65622324ca2fec500dbd9a7..b604c2190c548ae4817fa4f4daba64baf71eb885 100644 |
--- a/src/ports/SkOSFile_posix.cpp |
+++ b/src/ports/SkOSFile_posix.cpp |
@@ -104,12 +104,10 @@ struct SkOSFileIterData { |
}; |
static_assert(sizeof(SkOSFileIterData) <= SkOSFile::Iter::kStorageSize, "not_enough_space"); |
-SkOSFile::Iter::Iter() { |
- SkNEW_PLACEMENT(fSelf.get(), SkOSFileIterData); |
-} |
+SkOSFile::Iter::Iter() { new (fSelf.get()) SkOSFileIterData; } |
SkOSFile::Iter::Iter(const char path[], const char suffix[]) { |
- SkNEW_PLACEMENT(fSelf.get(), SkOSFileIterData); |
+ new (fSelf.get()) SkOSFileIterData; |
this->reset(path, suffix); |
} |