Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Oct 5, 2024
1 parent d4e81cf commit 64f5eb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions JL.Core/Deconjugation/Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ public override int GetHashCode()
{
unchecked
{
int hash = 17;

hash = (hash * 37) + Text.GetHashCode(StringComparison.Ordinal);
int hash = (17 * 37) + Text.GetHashCode(StringComparison.Ordinal);
hash = (hash * 37) + OriginalText.GetHashCode(StringComparison.Ordinal);

foreach (string tag in Tags)
Expand Down
3 changes: 1 addition & 2 deletions JL.Core/Dicts/EPWING/Nazeka/EpwingNazekaRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ public override int GetHashCode()
{
unchecked
{
int hash = 17;
hash = (hash * 37) + PrimarySpelling.GetHashCode(StringComparison.Ordinal);
int hash = (17 * 37) + PrimarySpelling.GetHashCode(StringComparison.Ordinal);
hash = (hash * 37) + Reading?.GetHashCode(StringComparison.Ordinal) ?? 37;

foreach (string definition in Definitions)
Expand Down
3 changes: 1 addition & 2 deletions JL.Core/Dicts/EPWING/Yomichan/EpwingYomichanRecord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ public override int GetHashCode()
{
unchecked
{
int hash = 17;
hash = (hash * 37) + PrimarySpelling.GetHashCode(StringComparison.Ordinal);
int hash = (17 * 37) + PrimarySpelling.GetHashCode(StringComparison.Ordinal);
hash = (hash * 37) + Reading?.GetHashCode(StringComparison.Ordinal) ?? 37;

foreach (string definition in Definitions)
Expand Down

0 comments on commit 64f5eb7

Please sign in to comment.