Refactored some of the hardware monitoring code and fixed a few code inspection warnings.

This commit is contained in:
Michael Möller
2010-09-21 20:32:36 +00:00
parent dfb06376d6
commit bcde768e25
44 changed files with 437 additions and 472 deletions

View File

@@ -41,9 +41,9 @@ using System.Globalization;
namespace OpenHardwareMonitor.Hardware {
internal struct ParameterDescription {
private string name;
private string description;
private float defaultValue;
private readonly string name;
private readonly string description;
private readonly float defaultValue;
public ParameterDescription(string name, string description,
float defaultValue) {
@@ -60,11 +60,11 @@ namespace OpenHardwareMonitor.Hardware {
}
internal class Parameter : IParameter {
private ISensor sensor;
private readonly ISensor sensor;
private ParameterDescription description;
private float value;
private bool isDefault;
private ISettings settings;
private readonly ISettings settings;
public Parameter(ParameterDescription description, ISensor sensor,
ISettings settings)