Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
6f4e73db
Commit
6f4e73db
authored
Jun 03, 2016
by
Brent Gulanowski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #211 from Shopify/bugfix/optionvalue-equality
Fix equality test in BUYOptionValue
parents
7c8da3a2
b2757fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
BUYOptionValue.m
...Buy SDK/Mobile Buy SDK/Models/Persistent/BUYOptionValue.m
+2
-2
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/Persistent/BUYOptionValue.m
View file @
6f4e73db
...
...
@@ -30,7 +30,7 @@
-
(
BOOL
)
isEqualToOptionValue
:(
BUYOptionValue
*
)
other
{
return
[
other
isKindOfClass
:[
self
class
]]
&&
[
self
.
name
isEqual
:
other
.
name
]
&&
[
self
.
optionId
isEqual
:
other
.
optionId
];
return
[
other
isKindOfClass
:[
self
class
]]
&&
[
self
.
name
isEqual
:
other
.
name
]
&&
[
self
.
value
isEqual
:
other
.
value
];
}
#if !defined CORE_DATA_PERSISTENCE
...
...
@@ -42,7 +42,7 @@
-
(
NSUInteger
)
hash
{
NSUInteger
hash
=
self
.
name
.
hash
;
return
((
hash
<<
5
)
+
hash
)
+
self
.
optionId
.
hash
;
return
((
hash
<<
5
)
+
hash
)
+
self
.
value
.
hash
;
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment