Skip to content

Commit 9f1d0b3

Browse files
committed
Fix parameter naming updated in error as part of refactor
1 parent e19bffb commit 9f1d0b3

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Terminal.Gui/ConsoleDrivers/FakeDriver/FakeMainLoop.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ internal class FakeMainLoop : IMainLoopDriver
44
{
55
public Action<ConsoleKeyInfo> MockKeyPressed;
66

7-
public FakeMainLoop (IConsoleDriver IConsoleDriver = null)
7+
public FakeMainLoop (IConsoleDriver consoleDriver = null)
88
{
99
// No implementation needed for FakeMainLoop
1010
}

Terminal.Gui/ConsoleDrivers/NetDriver/NetEvents.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ internal class NetEvents : IDisposable
1414
#if PROCESS_REQUEST
1515
bool _neededProcessRequest;
1616
#endif
17-
public NetEvents (IConsoleDriver IConsoleDriver)
17+
public NetEvents (IConsoleDriver consoleDriver)
1818
{
19-
_consoleDriver = IConsoleDriver ?? throw new ArgumentNullException (nameof (IConsoleDriver));
19+
_consoleDriver = consoleDriver ?? throw new ArgumentNullException (nameof (consoleDriver));
2020
_inputReadyCancellationTokenSource = new ();
2121

2222
Task.Run (ProcessInputQueue, _inputReadyCancellationTokenSource.Token);

Terminal.Gui/ConsoleDrivers/NetDriver/NetMainLoop.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ internal class NetMainLoop : IMainLoopDriver
2525

2626
/// <summary>Initializes the class with the console driver.</summary>
2727
/// <remarks>Passing a IConsoleDriver is provided to capture windows resizing.</remarks>
28-
/// <param name="IConsoleDriver">The console driver used by this Net main loop.</param>
28+
/// <param name="consoleDriver">The console driver used by this Net main loop.</param>
2929
/// <exception cref="ArgumentNullException"></exception>
30-
public NetMainLoop (IConsoleDriver IConsoleDriver)
30+
public NetMainLoop (IConsoleDriver consoleDriver)
3131
{
32-
ArgumentNullException.ThrowIfNull (IConsoleDriver);
32+
ArgumentNullException.ThrowIfNull (consoleDriver);
3333

3434
if (!ConsoleDriver.RunningUnitTests)
3535
{
36-
_netEvents = new (IConsoleDriver);
36+
_netEvents = new (consoleDriver);
3737
}
3838
}
3939

Terminal.Gui/ConsoleDrivers/WindowsDriver/WindowsMainLoop.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ internal class WindowsMainLoop : IMainLoopDriver
2929
private readonly CancellationTokenSource _inputHandlerTokenSource = new ();
3030
private MainLoop? _mainLoop;
3131

32-
public WindowsMainLoop (IConsoleDriver IConsoleDriver)
32+
public WindowsMainLoop (IConsoleDriver consoleDriver)
3333
{
34-
_consoleDriver = IConsoleDriver ?? throw new ArgumentNullException (nameof (IConsoleDriver));
34+
_consoleDriver = consoleDriver ?? throw new ArgumentNullException (nameof (consoleDriver));
3535

3636
if (!ConsoleDriver.RunningUnitTests)
3737
{
38-
_winConsole = ((WindowsDriver)IConsoleDriver).WinConsole;
38+
_winConsole = ((WindowsDriver)consoleDriver).WinConsole;
3939
_winConsole!._mainLoop = this;
4040
}
4141
}

0 commit comments

Comments
 (0)