diff options
author | sr55 <[email protected]> | 2017-02-11 20:37:33 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2017-02-11 20:37:33 +0000 |
commit | 9ce3910fd193628e754abf4939c3758f1e57e100 (patch) | |
tree | bb7e367be99a36e85aa2c4beb1f45c243ae43c75 /win/CS/HandBrake.ApplicationServices | |
parent | a1455ea947b0f85665228f23d2f94f66bdad2cdd (diff) |
WinGui: Fix a number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
5 files changed, 12 insertions, 12 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs index f803887d1..de0f0b2bc 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeInstance.cs @@ -216,6 +216,9 @@ namespace HandBrake.ApplicationServices.Interop /// <param name="titleIndex">
/// The title index to scan (1-based, 0 for all titles).
/// </param>
+ /// <param name="clEnabled">
+ /// OpenCL enabled.
+ /// </param>
public void StartScan(string path, int previewCount, TimeSpan minDuration, int titleIndex, bool clEnabled = false)
{
this.previewCount = previewCount;
@@ -516,9 +519,6 @@ namespace HandBrake.ApplicationServices.Interop /// <summary>
/// Checks the status of the ongoing encode.
/// </summary>
- /// <summary>
- /// Checks the status of the ongoing encode.
- /// </summary>
[HandleProcessCorruptedStateExceptions]
private void PollEncodeProgress()
{
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs index b77c2b9a6..343280031 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/HandBrakeLanguagesHelper.cs @@ -18,7 +18,7 @@ namespace HandBrake.ApplicationServices.Interop /// <summary>
/// Contains utilities for converting language codes.
/// </summary>
- public static class Languages
+ public static class HandBrakeLanguagesHelper
{
/// <summary>
/// The list of all languages.
diff --git a/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/MetaData.cs b/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/MetaData.cs index d840d5d7f..c193527eb 100644 --- a/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/MetaData.cs +++ b/win/CS/HandBrake.ApplicationServices/Interop/Json/Encode/MetaData.cs @@ -1,5 +1,5 @@ // --------------------------------------------------------------------------------------------------------------------
-// <copyright file="MetaData.cs" company="HandBrake Project (http://handbrake.fr)">
+// <copyright file="Metadata.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
diff --git a/win/CS/HandBrake.ApplicationServices/Model/HBConfiguration.cs b/win/CS/HandBrake.ApplicationServices/Model/HBConfiguration.cs index 6290004c8..f8b2eb69f 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/HBConfiguration.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/HBConfiguration.cs @@ -57,7 +57,7 @@ namespace HandBrake.ApplicationServices.Model /// <summary>
/// Gets or sets a value indicating whether save log with video.
/// </summary>
- public bool SaveLogWithVideo{ get; set; }
+ public bool SaveLogWithVideo { get; set; }
/// <summary>
/// Gets or sets the save log copy directory.
diff --git a/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs b/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs index 95a1ec515..ef869570a 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/Logging/LogService.cs @@ -33,7 +33,7 @@ namespace HandBrake.ApplicationServices.Services.Logging // Make this class Thread Safe. private static ILog loggerInstance; private readonly object lockObject = new object(); - private readonly object FileWriterLock = new object(); + private readonly object fileWriterLock = new object(); private readonly StringBuilder logBuilder = new StringBuilder(); private LogLevel currentLogLevel = LogLevel.Error; @@ -198,7 +198,7 @@ namespace HandBrake.ApplicationServices.Services.Logging this.isDiskLoggingEnabled = true; this.deleteLogFirst = deleteCurrentLogFirst; - lock (this.FileWriterLock) + lock (this.fileWriterLock) { this.fileWriter = new StreamWriter(logFile) { AutoFlush = true }; } @@ -209,7 +209,7 @@ namespace HandBrake.ApplicationServices.Services.Logging if (this.fileWriter != null) { - lock (this.FileWriterLock) + lock (this.fileWriterLock) { this.fileWriter.Flush(); this.fileWriter.Close(); @@ -252,7 +252,7 @@ namespace HandBrake.ApplicationServices.Services.Logging try { - lock (this.FileWriterLock) + lock (this.fileWriterLock) { if (this.fileWriter != null) { @@ -299,7 +299,7 @@ namespace HandBrake.ApplicationServices.Services.Logging try { - lock (this.FileWriterLock) + lock (this.fileWriterLock) { if (this.fileWriter != null && this.fileWriter.BaseStream.CanWrite) { @@ -335,7 +335,7 @@ namespace HandBrake.ApplicationServices.Services.Logging { try { - lock (this.FileWriterLock) + lock (this.fileWriterLock) { if (this.fileWriter != null) { |