From 3748c9b150586993952ef04e63ec14ae96f243e2 Mon Sep 17 00:00:00 2001 From: Vladyslav Baranovskyi Date: Fri, 20 Dec 2024 16:47:05 +0200 Subject: [PATCH] SystemInfo changes for iOS --- openVulkanoCpp/Host/iOS/SystemInfo.mm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openVulkanoCpp/Host/iOS/SystemInfo.mm b/openVulkanoCpp/Host/iOS/SystemInfo.mm index af0c922..54efb7e 100644 --- a/openVulkanoCpp/Host/iOS/SystemInfo.mm +++ b/openVulkanoCpp/Host/iOS/SystemInfo.mm @@ -64,29 +64,29 @@ namespace OpenVulkano return 0; } - std::string SystemInfo::GetUserName() + const std::string& SystemInfo::GetUserName() { return ""; } - std::string SystemInfo::GetHostName() + const std::string& SystemInfo::GetHostName() { static const std::string hostName = [[NSProcessInfo processInfo].hostName UTF8String]; return hostName; } - std::string SystemInfo::GetDeviceName() + const std::string& SystemInfo::GetDeviceName() { static const std::string devName = [[[UIDevice currentDevice] name] UTF8String]; return devName; } - std::string SystemInfo::GetDeviceVendorName() + const std::string& SystemInfo::GetDeviceVendorName() { return "Apple"; } - std::string SystemInfo::GetDeviceModelName() + const std::string& SystemInfo::GetDeviceModelName() { static std::string modelName; if (modelName.empty()) @@ -99,7 +99,7 @@ namespace OpenVulkano return modelName; } - std::string SystemInfo::GetOsName() + const std::string& SystemInfo::GetOsName() { static const std::string osName = [[[UIDevice currentDevice] systemName] UTF8String]; return osName; @@ -117,7 +117,7 @@ namespace OpenVulkano return osv; } - std::string SystemInfo::GetOsNameHumanReadable() + const std::string& SystemInfo::GetOsNameHumanReadable() { static std::string hrName; if (hrName.empty())