Skip to content

Commit 09a3eec

Browse files
committed
Tweaked QualifiedModuleName.Equals implementation
1 parent d071860 commit 09a3eec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Rubberduck.VBEEditor/QualifiedModuleName.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public override bool Equals(object obj)
7171
return other.ProjectName == ProjectName && other.ComponentName == ComponentName;
7272
}
7373

74-
var result = other.Component.Equals(Component) && other._contentHashCode == _contentHashCode;
74+
var result = other.Project == Project
75+
&& other.ComponentName == ComponentName
76+
&& other._contentHashCode == _contentHashCode;
7577
return result;
7678
}
7779
catch (InvalidCastException)

0 commit comments

Comments
 (0)