summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices/Utilities
diff options
context:
space:
mode:
authorsr55 <[email protected]>2013-11-19 22:54:16 +0000
committersr55 <[email protected]>2013-11-19 22:54:16 +0000
commitc32a46c925608e51be9edcd6b5647c50124dd16a (patch)
treefcd2cb8c04f326d07145117bbc03f130d1170b60 /win/CS/HandBrake.ApplicationServices/Utilities
parent5e4d8c7244a85fafa7ae477f8378a0c56e7ba365 (diff)
WinGui: Fix a large number of stylecop warnings.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5900 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Utilities')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs5
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/PList.cs1
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs11
3 files changed, 8 insertions, 9 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs b/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs
index 371ef128f..78e8335c8 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs
@@ -84,9 +84,8 @@ namespace HandBrake.ApplicationServices.Utilities
{
return val;
}
-
- if (insensitiveCase && currDescription.ToLower() == description.ToLower() ||
- currDisplay.ToLower() == description.ToLower())
+
+ if (insensitiveCase && currDescription.ToLower() == description.ToLower() || currDisplay.ToLower() == description.ToLower())
{
return val;
}
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs b/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs
index 48212b519..78320f1fe 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/PList.cs
@@ -43,7 +43,6 @@ namespace HandBrake.ApplicationServices.Utilities
#region Public Methods
-
/// <summary>
/// Load a plist file.
/// </summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
index 5552f1941..b1db2fcaa 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/QueryGeneratorUtility.cs
@@ -263,10 +263,12 @@ namespace HandBrake.ApplicationServices.Utilities
if (task.Height.HasValue && task.Height != 0) query += string.Format(" -l {0}", task.Height);
}
- //if (task.HasCropping)
- //{
- query += string.Format(" --crop {0}:{1}:{2}:{3}", task.Cropping.Top, task.Cropping.Bottom, task.Cropping.Left, task.Cropping.Right);
- //}
+ query += string.Format(
+ " --crop {0}:{1}:{2}:{3}",
+ task.Cropping.Top,
+ task.Cropping.Bottom,
+ task.Cropping.Left,
+ task.Cropping.Right);
switch (task.Anamorphic)
{
@@ -442,7 +444,6 @@ namespace HandBrake.ApplicationServices.Utilities
query += string.Format(" -b {0}", task.VideoBitrate.Value);
break;
case VideoEncodeRateType.ConstantQuality:
- double value;
switch (task.VideoEncoder)
{
case VideoEncoder.FFMpeg: