Skip to content

Commit 5d6ac51

Browse files
committed
Fix typos and clean up unneccessary comments
1 parent 712e949 commit 5d6ac51

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/IFakesProvider.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,23 @@ public interface IFakesProvider
8585
IFake Rnd { get; }
8686

8787
[DispId(19)]
88-
[Description("Configures VBA.Iteraction.DeleteSetting calls.")]
88+
[Description("Configures VBA.Interaction.DeleteSetting calls.")]
8989
IStub DeleteSetting { get; }
9090

9191
[DispId(20)]
92-
[Description("Configures VBA.Iteraction.SaveSetting calls.")]
92+
[Description("Configures VBA.Interaction.SaveSetting calls.")]
9393
IStub SaveSetting { get; }
9494

9595
[DispId(21)]
96-
[Description("Configures VBA.Iteraction.GetSetting calls.")]
96+
[Description("Configures VBA.Interaction.GetSetting calls.")]
9797
IFake GetSetting { get; }
9898

9999
[DispId(22)]
100100
[Description("Configures VBA.Math.Randomize calls.")]
101101
IStub Randomize { get; }
102102

103103
[DispId(23)]
104-
[Description("Configures VBA.Iteraction.GetAllSettings calls.")]
104+
[Description("Configures VBA.Interaction.GetAllSettings calls.")]
105105
IFake GetAllSettings { get; }
106106

107107
[DispId(24)]

Rubberduck.Main/ComClientLibrary/UnitTesting/Fakes/GetAllSettings.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public GetAllSettings()
1414
}
1515

1616
[UnmanagedFunctionPointer(CallingConvention.StdCall, SetLastError = true)]
17-
//[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType=VarEnum.VT_BSTR)]
1817
private delegate void GetAllSettingsDelegate(IntPtr retVal, IntPtr appName, IntPtr section);
1918

2019
public void GetAllSettingsCallback(IntPtr retVal, IntPtr appName, IntPtr section)
@@ -31,7 +30,7 @@ public void GetAllSettingsCallback(IntPtr retVal, IntPtr appName, IntPtr section
3130
nativeCall(retVal, appName, section);
3231
return;
3332
}
34-
Marshal.GetNativeVariantForObject(ReturnValue ?? 0, retVal); // ReturnValue ?? IntPtr.Zero;
33+
Marshal.GetNativeVariantForObject(ReturnValue ?? 0, retVal);
3534
}
3635
}
3736
}

Rubberduck.Main/ComClientLibrary/UnitTesting/Fakes/IMEStatus.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public IMEStatus()
1919
public short IMEStatusCallback()
2020
{
2121
OnCallBack(true);
22-
if (!TrySetReturnValue()) // specific invocation
22+
if (!TrySetReturnValue())
2323
{
24-
TrySetReturnValue(true); // any invocation
24+
TrySetReturnValue(true);
2525
}
2626

2727
if (PassThrough)

Rubberduck.Main/ComClientLibrary/UnitTesting/Fakes/Now.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public Now()
1818
public void NowCallback(IntPtr retVal)
1919
{
2020
OnCallBack(true);
21-
if (!TrySetReturnValue()) // specific invocation
21+
if (!TrySetReturnValue())
2222
{
23-
TrySetReturnValue(true); // any invocation
23+
TrySetReturnValue(true);
2424
}
2525
if (PassThrough)
2626
{

Rubberduck.Main/ComClientLibrary/UnitTesting/Fakes/Time.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ public Time()
1818
public void TimeCallback(IntPtr retVal)
1919
{
2020
OnCallBack(true);
21-
if (!TrySetReturnValue()) // specific invocation
21+
if (!TrySetReturnValue())
2222
{
23-
TrySetReturnValue(true); // any invocation
23+
TrySetReturnValue(true);
2424
}
2525
if (PassThrough)
2626
{

0 commit comments

Comments
 (0)