summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-01-02 21:15:56 +0000
committersr55 <[email protected]>2014-01-02 21:15:56 +0000
commite6b6f7bd7c7da9c0f8fb100613b40140911398d1 (patch)
tree4670294f44b947f7166bc860f5742b98186c0516 /win/CS/HandBrake.ApplicationServices
parentc6e405a1d3f44745af4439129ae3cc48a6b6ffcb (diff)
WinGui: cleanup some warnings.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5952 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs2
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs3
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs6
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/PresetService.cs2
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs2
-rw-r--r--win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs1
6 files changed, 10 insertions, 6 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs
index c86bc5ff6..fd10e22bd 100644
--- a/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs
+++ b/win/CS/HandBrake.ApplicationServices/Factories/PlistPresetFactory.cs
@@ -269,7 +269,7 @@ namespace HandBrake.ApplicationServices.Factories
preset.Name = kvp.Value;
break;
case "Type":
- //preset.Task.Type = kvp.Value; // TODO find out what this is
+ // preset.Task.Type = kvp.Value; // TODO find out what this is
break;
case "UsesMaxPictureSettings":
// TODO Not sure if this is used now!?
diff --git a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
index f20589f7d..b521d3b9d 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/EncodeTask.cs
@@ -33,6 +33,9 @@ namespace HandBrake.ApplicationServices.Model
/// </summary>
private bool showAdvancedTab;
+ /// <summary>
+ /// The advanced encoder options.
+ /// </summary>
private string advancedEncoderOptions;
#endregion
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs b/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
index f97355ad5..57e4bfd71 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/LibEncode.cs
@@ -34,7 +34,7 @@ namespace HandBrake.ApplicationServices.Services
/// <summary>
/// Lock for the log file
/// </summary>
- private static readonly object logLock = new object();
+ private static readonly object LogLock = new object();
/// <summary>
/// The instance.
@@ -244,7 +244,7 @@ namespace HandBrake.ApplicationServices.Services
{
if (this.loggingEnabled)
{
- lock (logLock)
+ lock (LogLock)
{
this.ProcessLogMessage(e.Message);
}
@@ -264,7 +264,7 @@ namespace HandBrake.ApplicationServices.Services
{
if (this.loggingEnabled)
{
- lock (logLock)
+ lock (LogLock)
{
this.ProcessLogMessage(e.Message);
}
diff --git a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
index 7bc569ed7..8de36ca7f 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/PresetService.cs
@@ -409,7 +409,7 @@ namespace HandBrake.ApplicationServices.Services
}
}
}
- catch(IOException)
+ catch (IOException)
{
// Give up
}
diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs b/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs
index 78e8335c8..cc7dfc43e 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/EnumHelper.cs
@@ -85,7 +85,7 @@ 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/Win32.cs b/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs
index 81d4846ec..8a870adfb 100644
--- a/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs
+++ b/win/CS/HandBrake.ApplicationServices/Utilities/Win32.cs
@@ -5,6 +5,7 @@
// <summary>
// Win32 API calls
// </summary>
+// <auto-generated>Disable Stylecop for this file </auto-generated>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Utilities