Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
simplfiy names
Browse files Browse the repository at this point in the history
  • Loading branch information
kmscode committed Mar 20, 2017
1 parent 82b1b02 commit ffd41c5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions VncSharp/ConnectEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public class ConnectEventArgs : EventArgs
/// <param name="name">A String containing the name of the remote Desktop.</param>
public ConnectEventArgs(int width, int height, string name)
{
this.DesktopWidth = width;
this.DesktopHeight = height;
this.DesktopName = name;
DesktopWidth = width;
DesktopHeight = height;
DesktopName = name;
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions VncSharp/Framebuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public class Framebuffer
/// <param name="height">The height in pixels of the remote desktop.</param>
private Framebuffer(int width, int height)
{
this.Width = width;
this.Height = height;
Width = width;
Height = height;

// Cache the total size of the pixel array and initialize
// The total number of pixels (w x h) assigned in SetSize()
Expand Down
2 changes: 1 addition & 1 deletion VncSharp/VncEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class VncEventArgs : EventArgs
{
public VncEventArgs(IDesktopUpdater updater)
{
this.DesktopUpdater = updater;
DesktopUpdater = updater;
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions VncSharp/zlib.NET/SupportClass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public static int ReadInput(TextReader sourceTextReader, byte[] target, int star
/// <returns>The new array of bytes</returns>
public static byte[] ToByteArray(string sourceString)
{
return UTF8Encoding.UTF8.GetBytes(sourceString);
return Encoding.UTF8.GetBytes(sourceString);
}

/// <summary>
Expand All @@ -160,7 +160,7 @@ public static byte[] ToByteArray(string sourceString)
/// <returns>The new array of chars</returns>
public static char[] ToCharArray(byte[] byteArray)
{
return UTF8Encoding.UTF8.GetChars(byteArray);
return Encoding.UTF8.GetChars(byteArray);
}


Expand Down

0 comments on commit ffd41c5

Please sign in to comment.