Skip to content

Commit d48c080

Browse files
committed
Make runtime readonly
1 parent 75573ab commit d48c080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rubberduck.VBEEditor/ComManagement/ComMessagePumper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Rubberduck.VBEditor.ComManagement
77
public static class ComMessagePumper
88
{
99
private static SynchronizationContext UiContext { get; set; }
10-
private static IVBERuntime Runtime { get; set; }
10+
private static readonly IVBERuntime _runtime;
1111

1212
public static void Initialize()
1313
{
@@ -16,7 +16,7 @@ public static void Initialize()
1616
UiContext = SynchronizationContext.Current;
1717
}
1818

19-
Runtime = new VBERuntimeAccessor();
19+
_runtime = new VBERuntimeAccessor();
2020
}
2121

2222
/// <summary>
@@ -37,7 +37,7 @@ public static int PumpMessages()
3737
{
3838
CheckContext();
3939

40-
return Runtime.DoEvents();
40+
return _runtime.DoEvents();
4141
}
4242

4343
private static void CheckContext()

0 commit comments

Comments
 (0)