REFACTOR: Redundant empty argument list on object creation expression.

This commit is contained in:
2017-12-21 03:18:10 +00:00
parent ff5540ff5d
commit df2fb651e4
22 changed files with 40 additions and 40 deletions

View File

@@ -82,7 +82,7 @@ namespace DiscImageChef.Core.Devices.Dumping
Decoders.ATA.Identify.IdentifyDevice ataId = Decoders.ATA.Identify.Decode(cmdBuf).Value;
CICMMetadataType sidecar =
new CICMMetadataType() {BlockMedia = new BlockMediaType[] {new BlockMediaType()}};
new CICMMetadataType {BlockMedia = new BlockMediaType[] {new BlockMediaType()}};
if(dev.IsUsb)
{

View File

@@ -563,7 +563,7 @@ namespace DiscImageChef.Core.Devices.Dumping
{
tmpBuf = new byte[cmdBuf.Length - 4];
Array.Copy(cmdBuf, 4, tmpBuf, 0, cmdBuf.Length - 4);
sidecar.OpticalDisc[0].DI = new DumpType()
sidecar.OpticalDisc[0].DI = new DumpType
{
Image = outputPrefix + ".di.bin",
Size = tmpBuf.Length,

View File

@@ -154,7 +154,7 @@ namespace DiscImageChef.Core.Devices.Dumping
{
ProductID = dev.UsbProductId,
VendorID = dev.UsbVendorId,
Descriptors = new DumpType()
Descriptors = new DumpType
{
Image = outputPrefix + ".usbdescriptors.bin",
Size = dev.UsbDescriptors.Length,
@@ -333,7 +333,7 @@ namespace DiscImageChef.Core.Devices.Dumping
if(alcohol != null && !dumpRaw)
{
alcohol.AddSessions(new[] {new Session() {StartTrack = 1, EndTrack = 1, SessionSequence = 1}});
alcohol.AddSessions(new[] {new Session {StartTrack = 1, EndTrack = 1, SessionSequence = 1}});
alcohol.AddTrack(20, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1);
alcohol.SetExtension(outputExtension);
alcohol.SetTrackSizes(1, (int)blockSize, 0, 0, (long)blocks);
@@ -503,7 +503,7 @@ namespace DiscImageChef.Core.Devices.Dumping
}
else
{
Decoders.SCSI.Modes.ModePage_01 pg = new Decoders.SCSI.Modes.ModePage_01()
Decoders.SCSI.Modes.ModePage_01 pg = new Decoders.SCSI.Modes.ModePage_01
{
PS = false,
AWRE = false,
@@ -516,7 +516,7 @@ namespace DiscImageChef.Core.Devices.Dumping
DCR = false,
ReadRetryCount = 255
};
Decoders.SCSI.Modes.DecodedMode md = new Decoders.SCSI.Modes.DecodedMode()
Decoders.SCSI.Modes.DecodedMode md = new Decoders.SCSI.Modes.DecodedMode
{
Header = new Decoders.SCSI.Modes.ModeHeader(),
Pages = new Decoders.SCSI.Modes.ModePage[]

View File

@@ -75,7 +75,7 @@ namespace DiscImageChef.Core.Devices.Dumping
double duration;
CICMMetadataType sidecar =
new CICMMetadataType() {BlockMedia = new BlockMediaType[] {new BlockMediaType()}};
new CICMMetadataType {BlockMedia = new BlockMediaType[] {new BlockMediaType()}};
uint blocksToRead = 128;
uint blockSize = 512;

View File

@@ -93,15 +93,15 @@ namespace DiscImageChef.Core.Devices.Dumping
byte[] tmpBuf = new byte[ssBuf.Length - 4];
Array.Copy(ssBuf, 4, tmpBuf, 0, ssBuf.Length - 4);
sidecar.OpticalDisc[0].Xbox = new XboxType()
sidecar.OpticalDisc[0].Xbox = new XboxType
{
SecuritySectors = new XboxSecuritySectorsType[]
{
new XboxSecuritySectorsType()
new XboxSecuritySectorsType
{
RequestNumber = 0,
RequestVersion = 1,
SecuritySectors = new DumpType()
SecuritySectors = new DumpType
{
Image = outputPrefix + ".ss.bin",
Size = tmpBuf.Length,
@@ -935,14 +935,14 @@ namespace DiscImageChef.Core.Devices.Dumping
Checksums = sidecar.OpticalDisc[0].Checksums,
EndSector = (long)(blocks - 1),
Image =
new ImageType()
new ImageType
{
format = "BINARY",
offset = 0,
offsetSpecified = true,
Value = sidecar.OpticalDisc[0].Image.Value
},
Sequence = new TrackSequenceType() {Session = 1, TrackNumber = 1},
Sequence = new TrackSequenceType {Session = 1, TrackNumber = 1},
Size = (long)(totalSize * blockSize),
StartSector = 0
};