mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Make some variables readonly so they cannot be modified after
construction.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* Device/Variables.cs:
|
||||||
|
Make some variables readonly so they cannot be modified
|
||||||
|
after construction.
|
||||||
|
|
||||||
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* Device/Variables.cs:
|
* Device/Variables.cs:
|
||||||
|
|||||||
@@ -46,12 +46,12 @@ namespace DiscImageChef.Devices
|
|||||||
object fd;
|
object fd;
|
||||||
bool error;
|
bool error;
|
||||||
int lastError;
|
int lastError;
|
||||||
DeviceType type;
|
readonly DeviceType type;
|
||||||
string manufacturer;
|
readonly string manufacturer;
|
||||||
string model;
|
readonly string model;
|
||||||
string revision;
|
readonly string revision;
|
||||||
string serial;
|
readonly string serial;
|
||||||
Decoders.SCSI.PeripheralDeviceTypes scsiType;
|
readonly Decoders.SCSI.PeripheralDeviceTypes scsiType;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the Platform ID for this device
|
/// Gets the Platform ID for this device
|
||||||
|
|||||||
Reference in New Issue
Block a user