From 90440b3f34eb6402cc29ad3987afce36573ede19 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Fri, 20 Dec 2024 15:31:20 +0200 Subject: [PATCH] Fixed a bunch of typos in linux's sysinfo --- openVulkanoCpp/Host/Linux/SystemInfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openVulkanoCpp/Host/Linux/SystemInfo.cpp b/openVulkanoCpp/Host/Linux/SystemInfo.cpp index 41d396f..64ad209 100644 --- a/openVulkanoCpp/Host/Linux/SystemInfo.cpp +++ b/openVulkanoCpp/Host/Linux/SystemInfo.cpp @@ -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)