summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-02-11 20:37:33 +0000
committersr55 <[email protected]>2017-02-11 20:37:33 +0000
commit9ce3910fd193628e754abf4939c3758f1e57e100 (patch)
treebb7e367be99a36e85aa2c4beb1f45c243ae43c75 /win/CS/HandBrakeWPF/Services
parenta1455ea947b0f85665228f23d2f94f66bdad2cdd (diff)
WinGui: Fix a number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services')
-rw-r--r--win/CS/HandBrakeWPF/Services/ErrorService.cs2
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs4
-rw-r--r--win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs2
-rw-r--r--win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs2
-rw-r--r--win/CS/HandBrakeWPF/Services/UpdateService.cs10
5 files changed, 7 insertions, 13 deletions
diff --git a/win/CS/HandBrakeWPF/Services/ErrorService.cs b/win/CS/HandBrakeWPF/Services/ErrorService.cs
index 3228ab363..21c04cd58 100644
--- a/win/CS/HandBrakeWPF/Services/ErrorService.cs
+++ b/win/CS/HandBrakeWPF/Services/ErrorService.cs
@@ -11,8 +11,8 @@ namespace HandBrakeWPF.Services
{
using System;
using System.Windows;
- using Interfaces;
using Caliburn.Micro;
+ using Interfaces;
using ViewModels.Interfaces;
/// <summary>
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
index 9afdafd9a..59307e5ed 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/Factories/JsonPresetFactory.cs
@@ -602,7 +602,6 @@ namespace HandBrakeWPF.Services.Presets.Factories
? "decomb"
: export.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif ? "yadif" : "off";
-
preset.PictureDeinterlacePreset = export.Task.DeinterlaceFilter == DeinterlaceFilter.Decomb
? EnumHelper<Decomb>.GetShortName(export.Task.Decomb)
: export.Task.DeinterlaceFilter == DeinterlaceFilter.Yadif ? EnumHelper<Deinterlace>.GetShortName(export.Task.Deinterlace) : string.Empty;
@@ -621,7 +620,6 @@ namespace HandBrakeWPF.Services.Presets.Factories
preset.PictureDenoiseTune = EnumHelper<DenoiseTune>.GetShortName(export.Task.DenoiseTune);
preset.PictureDetelecine = EnumHelper<Detelecine>.GetShortName(export.Task.Detelecine);
preset.PictureDetelecineCustom = export.Task.CustomDetelecine;
-
// Video
preset.VideoEncoder = EnumHelper<VideoEncoder>.GetShortName(export.Task.VideoEncoder);
@@ -631,7 +629,7 @@ namespace HandBrakeWPF.Services.Presets.Factories
preset.VideoLevel = export.Task.VideoLevel != null ? export.Task.VideoLevel.ShortName : null;
preset.VideoOptionExtra = export.Task.ExtraAdvancedArguments;
preset.VideoPreset = export.Task.VideoPreset != null ? export.Task.VideoPreset.ShortName : null;
- preset.VideoProfile = export.Task.VideoProfile != null ? export.Task.VideoProfile.ShortName : null;
+ preset.VideoProfile = export.Task.VideoProfile != null ? export.Task.VideoProfile.ShortName : null;
preset.VideoQSVAsyncDepth = 4; // Defaulted to 4 for now.
preset.VideoQSVDecode = !config.DisableQuickSyncDecoding;
preset.VideoQualitySlider = export.Task.Quality.HasValue ? export.Task.Quality.Value : 0;
diff --git a/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs b/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs
index 04e2395ea..8b6aee917 100644
--- a/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs
+++ b/win/CS/HandBrakeWPF/Services/Presets/Model/Preset.cs
@@ -24,7 +24,7 @@ namespace HandBrakeWPF.Services.Presets.Model
/// https://github.com/Caliburn-Micro/Caliburn.Micro/issues/89
/// https://github.com/Caliburn-Micro/Caliburn.Micro/issues/96
/// </remarks>
- public class Preset : PropertyChangedBase // Delibery not
+ public class Preset : PropertyChangedBase // Delibery not
{
#region Constants and Fields
diff --git a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs
index 5b2250f64..64d2e6ec9 100644
--- a/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs
+++ b/win/CS/HandBrakeWPF/Services/Queue/QueueProcessor.cs
@@ -266,7 +266,7 @@ namespace HandBrakeWPF.Services.Queue
{
foreach (QueueTask job in this.queue)
{
- if (String.Equals(
+ if (string.Equals(
job.Task.Destination,
destination.Replace("\\\\", "\\"),
StringComparison.OrdinalIgnoreCase)
diff --git a/win/CS/HandBrakeWPF/Services/UpdateService.cs b/win/CS/HandBrakeWPF/Services/UpdateService.cs
index 6a8885a07..362df2e33 100644
--- a/win/CS/HandBrakeWPF/Services/UpdateService.cs
+++ b/win/CS/HandBrakeWPF/Services/UpdateService.cs
@@ -15,15 +15,11 @@ namespace HandBrakeWPF.Services
using System.Net;
using System.Reflection;
using System.Security.Cryptography;
- using System.Text;
using System.Threading;
-
- using HandBrake.ApplicationServices.Utilities;
using HandBrake.ApplicationServices.Interop;
-
+ using HandBrake.ApplicationServices.Utilities;
using HandBrakeWPF.Model;
using HandBrakeWPF.Services.Interfaces;
-
using AppcastReader = HandBrakeWPF.Utilities.AppcastReader;
/// <summary>
@@ -110,7 +106,7 @@ namespace HandBrakeWPF.Services
var currentBuild = HandBrakeUtils.Build;
// Fetch the Appcast from our server.
- HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.AllowAutoRedirect = false; // We will never do this.
WebResponse response = request.GetResponse();
@@ -196,7 +192,7 @@ namespace HandBrakeWPF.Services
while ((bytesSize = responceStream.Read(downBuffer, 0, downBuffer.Length)) > 0)
{
localStream.Write(downBuffer, 0, bytesSize);
- progress(new DownloadStatus { BytesRead = localStream.Length, TotalBytes = fileSize});
+ progress(new DownloadStatus { BytesRead = localStream.Length, TotalBytes = fileSize });
}
responceStream.Close();