We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Result
1 parent cdff8fc commit 7b8f998Copy full SHA for 7b8f998
Flow.Launcher.Plugin/Result.cs
@@ -172,9 +172,16 @@ public override bool Equals(object obj)
172
/// <inheritdoc />
173
public override int GetHashCode()
174
{
175
- var hashcode = (Title?.GetHashCode() ?? 0) ^
176
- (SubTitle?.GetHashCode() ?? 0);
177
- return hashcode;
+ unchecked
+ {
+ // 17 and 23 are prime numbers
178
+ int hashcode = 17;
179
+ hashcode = hashcode * 23 + (Title?.GetHashCode() ?? 0);
180
+ hashcode = hashcode * 23 + (SubTitle?.GetHashCode() ?? 0);
181
+ hashcode = hashcode * 23 + (AutoCompleteText?.GetHashCode() ?? 0);
182
+ hashcode = hashcode * 23 + (CopyText?.GetHashCode() ?? 0);
183
+ return hashcode;
184
+ }
185
}
186
187
0 commit comments