Skip to content

Commit fc1b8b6

Browse files
committed
Remove duplicate function calls in RubberduckHooks constructor
1 parent f1c9125 commit fc1b8b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Rubberduck.Core/Common/RubberduckHooks.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ private static IntPtr GetVbeMainWindowPtr(IVBE vbe)
2626
}
2727
}
2828

29-
public RubberduckHooks(IVBE vbe, IGeneralConfigService config, HotkeyFactory hotkeyFactory, AutoCompleteService autoComplete)
30-
: base(GetVbeMainWindowPtr(vbe), GetVbeMainWindowPtr(vbe))
29+
private RubberduckHooks(IntPtr ptr) : base(ptr, ptr) { }
30+
31+
public RubberduckHooks(IVBE vbe, IGeneralConfigService config, HotkeyFactory hotkeyFactory,
32+
AutoCompleteService autoComplete)
33+
: this(GetVbeMainWindowPtr(vbe))
3134
{
3235
_config = config;
3336
_hotkeyFactory = hotkeyFactory;

0 commit comments

Comments
 (0)