From 88021b8280a31b90e7c47b25e45e32825b0d6cbe Mon Sep 17 00:00:00 2001 From: Ben Jones Date: Thu, 25 Jun 2015 10:53:12 -0700 Subject: [PATCH] Change += and -= to use inPlace ops and += should be union --- Source/ConstraintAttributes.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/ConstraintAttributes.swift b/Source/ConstraintAttributes.swift index a16a04e..06b3dec 100644 --- a/Source/ConstraintAttributes.swift +++ b/Source/ConstraintAttributes.swift @@ -157,10 +157,10 @@ internal struct ConstraintAttributes: OptionSetType, BooleanType { } } internal func +=(inout left: ConstraintAttributes, right: ConstraintAttributes) { - left = left.intersect(right) + left.unionInPlace(right) } internal func -=(inout left: ConstraintAttributes, right: ConstraintAttributes) { - left = left.subtract(right) + left.subtractInPlace(right) } internal func ==(left: ConstraintAttributes, right: ConstraintAttributes) -> Bool { return left.rawValue == right.rawValue