From 718fadca15bf3155e487c842616745ec2695a2d6 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Fri, 20 Dec 2024 16:46:39 +0200 Subject: [PATCH] SystemInfo changes for Linux --- openVulkanoCpp/Host/Linux/SystemInfo.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openVulkanoCpp/Host/Linux/SystemInfo.cpp b/openVulkanoCpp/Host/Linux/SystemInfo.cpp index a47e77e..19fe0cf 100644 --- a/openVulkanoCpp/Host/Linux/SystemInfo.cpp +++ b/openVulkanoCpp/Host/Linux/SystemInfo.cpp @@ -112,7 +112,7 @@ namespace OpenVulkano return vramMax; } - std::string SystemInfo::GetUserName() + const std::string& SystemInfo::GetUserName() { static std::string userName; if (userName.empty()) @@ -130,7 +130,7 @@ namespace OpenVulkano return userName; } - std::string SystemInfo::GetHostName() + const std::string& SystemInfo::GetHostName() { static std::string hostName; if (hostName.empty()) @@ -142,12 +142,12 @@ namespace OpenVulkano return hostName; } - std::string SystemInfo::GetDeviceName() + const std::string& SystemInfo::GetDeviceName() { return GetHostName(); } - std::string SystemInfo::GetDeviceVendorName() + const std::string& SystemInfo::GetDeviceVendorName() { static std::string vendor; if (vendor.empty()) @@ -168,7 +168,7 @@ namespace OpenVulkano return vendor; } - std::string SystemInfo::GetDeviceModelName() + const std::string& SystemInfo::GetDeviceModelName() { static std::string modelName; if (modelName.empty()) @@ -283,7 +283,7 @@ namespace OpenVulkano OsInfo osInfo; } - std::string SystemInfo::GetOsName() + const std::string& SystemInfo::GetOsName() { return osInfo.osName; } @@ -293,7 +293,7 @@ namespace OpenVulkano return osInfo.version; } - std::string SystemInfo::GetOsNameHumanReadable() + const std::string& SystemInfo::GetOsNameHumanReadable() { return osInfo.osNameFormatted; }