[Chore] Run solution code cleanup (#20584)

This commit is contained in:
Andrey Nekrasov
2022-09-16 11:54:58 +03:00
committed by GitHub
parent 09f4dead7f
commit ca3c758046
133 changed files with 108 additions and 359 deletions

View File

@@ -5,11 +5,11 @@ using System;
namespace Wox.Plugin.Common.VirtualDesktop.Helper
{
/// <summary>
/// Class that represents a Virtual Desktop
/// </summary>
/// <remarks>This class is named VDesktop to make clear it isn't an instance of the original Desktop class from Virtual Desktop Manager.
/// We can't use the original one, because therefore we must access private com interfaces. We aren't allowed to do this, because this is an official Microsoft project.</remarks>
/// <summary>
/// Class that represents a Virtual Desktop
/// </summary>
/// <remarks>This class is named VDesktop to make clear it isn't an instance of the original Desktop class from Virtual Desktop Manager.
/// We can't use the original one, because therefore we must access private com interfaces. We aren't allowed to do this, because this is an official Microsoft project.</remarks>
public class VDesktop
{
/// <summary>

View File

@@ -116,7 +116,6 @@ namespace Wox.Plugin.Common.Win32
public static extern HRESULT SHCreateStreamOnFileEx(string fileName, STGM grfMode, uint attributes, bool create, System.Runtime.InteropServices.ComTypes.IStream reserved, out System.Runtime.InteropServices.ComTypes.IStream stream);
}
[SuppressMessage("Naming", "CA1707:Identifiers should not contain underscores", Justification = "These are the names used by win32.")]
[SuppressMessage("StyleCop.CSharp.NamingRules", "SA1310:Field names should not contain underscore", Justification = "These are the names used by win32.")]
public static class Win32Constants
{
@@ -777,16 +776,12 @@ namespace Wox.Plugin.Common.Win32
}
}
#pragma warning disable CA2225 // Operator overloads have named alternates
public static implicit operator System.Drawing.Rectangle(RECT r)
#pragma warning restore CA2225 // Operator overloads have named alternates
{
return new System.Drawing.Rectangle(r.Left, r.Top, r.Width, r.Height);
}
#pragma warning disable CA2225 // Operator overloads have named alternates
public static implicit operator RECT(System.Drawing.Rectangle r)
#pragma warning restore CA2225 // Operator overloads have named alternates
{
return new RECT(r);
}
@@ -854,16 +849,12 @@ namespace Wox.Plugin.Common.Win32
{
}
#pragma warning disable CA2225 // Operator overloads have named alternates
public static implicit operator System.Drawing.Point(POINT p)
#pragma warning restore CA2225 // Operator overloads have named alternates
{
return new System.Drawing.Point(p.X, p.Y);
}
#pragma warning disable CA2225 // Operator overloads have named alternates
public static implicit operator POINT(System.Drawing.Point p)
#pragma warning restore CA2225 // Operator overloads have named alternates
{
return new POINT(p.X, p.Y);
}