aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-04-24 13:58:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-24 19:13:56 +0000
commit6736236fafb93080cc8954c0016c05afcf9824a0 (patch)
treea4d55c6b9da9185539f55fd336f7ceeb1f067ffb /samplecode
parent849dce1d7bc10b532c3d8f81a503416caf5f444e (diff)
include/private/SkTemplates: Cleanup bare pointers.
include/private: - SkAutoTArray, SkAutoTMalloc no longer use bare pointers to owned memory, - SkTHash and SkAutoTArray are now std::move()able. - SkAutoTArray::swap no longer neccesary. - SkAutoTMalloc::operator=() defined. src/pdf: - SkPDFCanon and SkPDFObjectSerializer are now std::move()able. - `template <class T> static void renew(T* t) { t->~T(); new (t) T; }` is gone. Change-Id: I2f36a0780c47d1427a85da240121c898387fb4cf Reviewed-on: https://skia-review.googlesource.com/123401 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SamplePathText.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SamplePathText.cpp b/samplecode/SamplePathText.cpp
index fd3c799b2d..0f58c53365 100644
--- a/samplecode/SamplePathText.cpp
+++ b/samplecode/SamplePathText.cpp
@@ -319,7 +319,7 @@ public:
void swapAnimationBuffers() override {
this->INHERITED::swapAnimationBuffers();
- fFrontPaths.swap(fBackPaths);
+ std::swap(fFrontPaths, fBackPaths);
}
void drawGlyphs(SkCanvas* canvas) override {