Fixed some Code Analysis warnings.

This commit is contained in:
Michael Möller
2010-08-15 14:46:58 +00:00
parent 2ec18bf862
commit 2071610bbe
33 changed files with 609 additions and 535 deletions

View File

@@ -45,7 +45,7 @@ namespace OpenHardwareMonitor.Hardware {
private static char SEPARATOR = '/';
private void CheckIdentifiers(string[] identifiers) {
private static void CheckIdentifiers(string[] identifiers) {
foreach (string s in identifiers)
if (s.Contains(" ") || s.Contains(SEPARATOR.ToString()))
throw new ArgumentException("Invalid identifier");