wrapping up everything minus var renaming (#5952)

This commit is contained in:
Clint Rutkas
2020-08-14 09:22:24 -07:00
committed by GitHub
parent 913615f1c2
commit 5c1713f274
13 changed files with 37 additions and 34 deletions

View File

@@ -10,7 +10,7 @@ namespace PowerLauncher.Helper
{
public class DataWebRequestFactory : IWebRequestCreate
{
class DataWebRequest : WebRequest
private class DataWebRequest : WebRequest
{
private readonly Uri m_uri;
@@ -25,7 +25,7 @@ namespace PowerLauncher.Helper
}
}
class DataWebResponse : WebResponse
private class DataWebResponse : WebResponse
{
private readonly string m_contentType;
private readonly byte[] m_data;

View File

@@ -7,7 +7,7 @@ using Wox.Plugin;
namespace PowerLauncher.Helper
{
class KeyboardHelper
internal class KeyboardHelper
{
public static SpecialKeyState CheckModifiers()
{

View File

@@ -223,7 +223,6 @@ namespace PowerLauncher.Helper
/// </remarks>
public static class SingleInstance<TApplication>
where TApplication : Application, ISingleInstanceApp
{
/// <summary>
/// String delimiter used in channel names.
@@ -369,7 +368,7 @@ namespace PowerLauncher.Helper
/// <summary>
/// Callback for activating first instance of the application.
/// </summary>
/// <param name="arg">Callback argument.</param>
/// <param name="args">Callback argument.</param>
/// <returns>Always null.</returns>
private static object ActivateFirstInstanceCallback(object _)
{

View File

@@ -98,10 +98,10 @@ namespace PowerLauncher.Helper
INPUTHARDWARE = 2,
}
const string WINDOW_CLASS_CONSOLE = "ConsoleWindowClass";
const string WINDOW_CLASS_WINTAB = "Flip3D";
const string WINDOW_CLASS_PROGMAN = "Progman";
const string WINDOW_CLASS_WORKERW = "WorkerW";
private const string WINDOW_CLASS_CONSOLE = "ConsoleWindowClass";
private const string WINDOW_CLASS_WINTAB = "Flip3D";
private const string WINDOW_CLASS_PROGMAN = "Progman";
private const string WINDOW_CLASS_WORKERW = "WorkerW";
public static bool IsWindowFullscreen()
{
@@ -181,7 +181,7 @@ namespace PowerLauncher.Helper
}
else
{
using (var src = new HwndSource(new HwndSourceParameters()))
using (var src = new HwndSource(default(HwndSourceParameters)))
{
matrix = src.CompositionTarget.TransformFromDevice;
}