Fixed a bunch of typos in linux's sysinfo

This commit is contained in:
Vladyslav Baranovskyi
2024-12-20 15:31:20 +02:00
parent 15cc73f5e8
commit 90440b3f34

View File

@@ -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)