mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Small cleanups [skip ci]
This commit is contained in:
parent
02a06a12b0
commit
98e6be5eb6
171 changed files with 1607 additions and 1769 deletions
|
@ -552,10 +552,10 @@ namespace GreenshotPlugin.Core {
|
|||
/// A container to supply files to a Multi-part form data upload
|
||||
/// </summary>
|
||||
public class ByteContainer : IBinaryContainer {
|
||||
private byte[] file;
|
||||
private string fileName;
|
||||
private string contentType;
|
||||
private int fileSize;
|
||||
private readonly byte[] file;
|
||||
private readonly string fileName;
|
||||
private readonly string contentType;
|
||||
private readonly int fileSize;
|
||||
public ByteContainer(byte[] file) : this(file, null) {
|
||||
}
|
||||
public ByteContainer(byte[] file, string filename) : this(file, filename, null) {
|
||||
|
@ -635,9 +635,9 @@ namespace GreenshotPlugin.Core {
|
|||
/// A container to supply images to a Multi-part form data upload
|
||||
/// </summary>
|
||||
public class BitmapContainer : IBinaryContainer {
|
||||
private Bitmap bitmap;
|
||||
private SurfaceOutputSettings outputSettings;
|
||||
private string fileName;
|
||||
private readonly Bitmap bitmap;
|
||||
private readonly SurfaceOutputSettings outputSettings;
|
||||
private readonly string fileName;
|
||||
|
||||
public BitmapContainer(Bitmap bitmap, SurfaceOutputSettings outputSettings, string filename) {
|
||||
this.bitmap = bitmap;
|
||||
|
@ -712,9 +712,9 @@ namespace GreenshotPlugin.Core {
|
|||
/// A container to supply surfaces to a Multi-part form data upload
|
||||
/// </summary>
|
||||
public class SurfaceContainer : IBinaryContainer {
|
||||
private ISurface surface;
|
||||
private SurfaceOutputSettings outputSettings;
|
||||
private string fileName;
|
||||
private readonly ISurface surface;
|
||||
private readonly SurfaceOutputSettings outputSettings;
|
||||
private readonly string fileName;
|
||||
|
||||
public SurfaceContainer(ISurface surface, SurfaceOutputSettings outputSettings, string filename) {
|
||||
this.surface = surface;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue