Skip to content

Commit 5d85177

Browse files
committed
Basic: prefer the move assignment for TreeScopeHashTableDetachedScope
MSVC objects to the const assignment and move assignment operator. Simply prefer the move semantics.
1 parent ce82e80 commit 5d85177

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

include/swift/Basic/TreeScopedHashTable.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,8 @@ class TreeScopedHashTableDetachedScope {
150150
const ImplTy *getImpl() { return DetachedImpl; }
151151

152152
public:
153-
TreeScopedHashTableDetachedScope &operator=(
154-
const TreeScopedHashTableDetachedScope &) = default;
155-
TreeScopedHashTableDetachedScope &operator=(
156-
TreeScopedHashTableDetachedScope &&) = default;
153+
TreeScopedHashTableDetachedScope &
154+
operator=(TreeScopedHashTableDetachedScope &&) = default;
157155

158156
TreeScopedHashTableDetachedScope() : DetachedImpl(0) {}
159157

0 commit comments

Comments
 (0)