diff options
author | bungeman <bungeman@google.com> | 2015-10-01 12:28:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-01 12:28:49 -0700 |
commit | 77a53de20d723ca21cc824fd97e68aaa60e022ea (patch) | |
tree | f5fc67e8b4c3ca465e4c6fe820c945d138af80d1 /src/core | |
parent | 52f8deba607fd67558b57551cd43406c8b743072 (diff) |
Base SkAutoTUnref on skstd::unique_ptr.
To further consolidate the various unique owning classes, this bases
SkAutoTUnref on skstd::unique_ptr. Users are updated because of two
breaking changes, swap now takes a reference and reset no longer
returns its argument.
Review URL: https://codereview.chromium.org/1370803002
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkPath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPath.cpp b/src/core/SkPath.cpp index 97e34386dc..1326362524 100644 --- a/src/core/SkPath.cpp +++ b/src/core/SkPath.cpp @@ -180,7 +180,7 @@ bool operator==(const SkPath& a, const SkPath& b) { void SkPath::swap(SkPath& that) { if (this != &that) { - fPathRef.swap(&that.fPathRef); + fPathRef.swap(that.fPathRef); SkTSwap<int>(fLastMoveToIndex, that.fLastMoveToIndex); SkTSwap<uint8_t>(fFillType, that.fFillType); SkTSwap<uint8_t>(fConvexity, that.fConvexity); |