Merge pull request #620 from Nihlus/cleanup-9-symbol-spacing

[Cleanup] Symbol Spacing
This commit is contained in:
Jarl Gullberg 2017-08-04 17:25:29 +02:00 committed by GitHub
commit 254f7e9bfb
23 changed files with 89 additions and 90 deletions

View file

@ -20,7 +20,6 @@ namespace Bind.Structures
/// Creates a new Parameter without type and name.
/// </summary>
public Parameter()
:base()
{
}

View file

@ -118,8 +118,8 @@ namespace OpenTK
// or [StructLayout(LayoutKind.Explicit)]
private static bool CheckStructLayoutAttribute(Type type)
{
StructLayoutAttribute[] attr = (StructLayoutAttribute[])
type.GetCustomAttributes(typeof(StructLayoutAttribute), true);
StructLayoutAttribute[] attr =
(StructLayoutAttribute[])type.GetCustomAttributes(typeof(StructLayoutAttribute), true);
if ((attr == null) ||
(attr != null && attr.Length > 0 && attr[0].Value != LayoutKind.Explicit && attr[0].Pack != 1))

View file

@ -14,8 +14,8 @@ namespace OpenTK.Platform.Android
/// <see cref="M:OpenTK.Platform.Android.AndroidGraphicsMode(Javax.Microedition.Khronos.Egl.EGLDisplay,int,OpenTK.Graphics.ColorFormat,int,int,int,int,bool)" />
/// constructors (pass null to the display parameter for lazy initialization)
/// </summary>
public AndroidGraphicsMode(ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo) :
this(null, 1, color, depth, stencil, samples, buffers, stereo)
public AndroidGraphicsMode(ColorFormat color, int depth, int stencil, int samples, int buffers, bool stereo)
: this(null, 1, color, depth, stencil, samples, buffers, stereo)
{
}
@ -30,8 +30,8 @@ namespace OpenTK.Platform.Android
/// </param>
/// <param name="majorVersion">Requested OpenGL version (1 or 2)</param>
/// <param name="mode">GraphicsMode to copy values from.</param>
public AndroidGraphicsMode(object display_ignored, int majorVersion, GraphicsMode mode) :
this(display_ignored, majorVersion, mode.ColorFormat, mode.Depth, mode.Stencil, mode.Samples, mode.Buffers, mode.Stereo)
public AndroidGraphicsMode(object display_ignored, int majorVersion, GraphicsMode mode)
: this(display_ignored, majorVersion, mode.ColorFormat, mode.Depth, mode.Stencil, mode.Samples, mode.Buffers, mode.Stereo)
{
}

View file

@ -9,7 +9,7 @@
<Rule Id="SA1000" Action="Error" /> <!-- Keywords must be spaced correctly -->
<Rule Id="SA1001" Action="Error" /> <!-- Commas must be spaced correctly -->
<Rule Id="SA1002" Action="Error" /> <!-- Semicolons must be spaced correctly -->
<Rule Id="SA1003" Action="None" /> <!-- Symbols must be spaced correctly -->
<Rule Id="SA1003" Action="Error" /> <!-- Symbols must be spaced correctly -->
<Rule Id="SA1004" Action="None" /> <!-- Documentation lines must begin with single space -->
<Rule Id="SA1005" Action="None" /> <!-- Single line comments must begin with single space -->
<Rule Id="SA1006" Action="Error" /> <!-- Preprocessor keywords must not be preceded by space -->