1.1 --- a/Hardware/Parameter.cs Thu Aug 12 20:53:27 2010 +0000
1.2 +++ b/Hardware/Parameter.cs Sun Aug 15 14:46:58 2010 +0000
1.3 @@ -41,7 +41,7 @@
1.4
1.5 namespace OpenHardwareMonitor.Hardware {
1.6
1.7 - public struct ParameterDescription {
1.8 + internal struct ParameterDescription {
1.9 private string name;
1.10 private string description;
1.11 private float defaultValue;
1.12 @@ -60,7 +60,7 @@
1.13 public float DefaultValue { get { return defaultValue; } }
1.14 }
1.15
1.16 - public class Parameter : IParameter {
1.17 + internal class Parameter : IParameter {
1.18 private ISensor sensor;
1.19 private ParameterDescription description;
1.20 private float value;
1.21 @@ -129,8 +129,9 @@
1.22 }
1.23
1.24 public void Accept(IVisitor visitor) {
1.25 - if (visitor != null)
1.26 - visitor.VisitParameter(this);
1.27 + if (visitor == null)
1.28 + throw new ArgumentNullException("visitor");
1.29 + visitor.VisitParameter(this);
1.30 }
1.31
1.32 public void Traverse(IVisitor visitor) { }