summaryrefslogtreecommitdiff
path: root/platform/darwin/src/MGLShape.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/darwin/src/MGLShape.mm')
-rw-r--r--platform/darwin/src/MGLShape.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/darwin/src/MGLShape.mm b/platform/darwin/src/MGLShape.mm
index 4ddf7c9df7..984235fd97 100644
--- a/platform/darwin/src/MGLShape.mm
+++ b/platform/darwin/src/MGLShape.mm
@@ -94,9 +94,7 @@ bool operator==(const CLLocationCoordinate2D lhs, const CLLocationCoordinate2D r
- (NSUInteger)hash
{
- NSUInteger hash;
- hash += _title.hash;
- hash += _subtitle.hash;
+ NSUInteger hash = _title.hash + _subtitle.hash;
#if !TARGET_OS_IPHONE
hash += _toolTip.hash;
#endif