Fixed a bunch of typos in linux's sysinfo
This commit is contained in:
@@ -119,7 +119,7 @@ namespace OpenVulkano
|
||||
std::string SystemInfo::GetUserName()
|
||||
{
|
||||
static std::string userName;
|
||||
if (userName.emtpy())
|
||||
if (userName.empty())
|
||||
{
|
||||
char* name = getlogin();
|
||||
if (!name)
|
||||
@@ -137,7 +137,7 @@ namespace OpenVulkano
|
||||
std::string SystemInfo::GetHostName()
|
||||
{
|
||||
static std::string hostName;
|
||||
if (hostName.emtpy())
|
||||
if (hostName.empty())
|
||||
{
|
||||
char hostname[HOST_NAME_MAX + 1];
|
||||
gethostname(hostname, HOST_NAME_MAX + 1);
|
||||
@@ -154,7 +154,7 @@ namespace OpenVulkano
|
||||
std::string SystemInfo::GetDeviceVendorName()
|
||||
{
|
||||
static std::string vendor;
|
||||
if (vendor.emtpy())
|
||||
if (vendor.empty())
|
||||
{
|
||||
std::ifstream dmiStream("/sys/class/dmi/id/board_vendor");
|
||||
if (!dmiStream)
|
||||
@@ -175,7 +175,7 @@ namespace OpenVulkano
|
||||
std::string SystemInfo::GetDeviceModelName()
|
||||
{
|
||||
static std::string modelName;
|
||||
if (modelName.emtpy())
|
||||
if (modelName.empty())
|
||||
{
|
||||
std::ifstream dmiStream("/sys/class/dmi/id/board_name");
|
||||
if (!dmiStream)
|
||||
|
||||
Reference in New Issue
Block a user