Introduced static variables in places where the return value is a plain string
This commit is contained in:
@@ -66,7 +66,8 @@ namespace OpenVulkano
|
||||
|
||||
const std::string& SystemInfo::GetUserName()
|
||||
{
|
||||
return "";
|
||||
static const std::string userName = "";
|
||||
return userName;
|
||||
}
|
||||
|
||||
const std::string& SystemInfo::GetHostName()
|
||||
@@ -83,7 +84,8 @@ namespace OpenVulkano
|
||||
|
||||
const std::string& SystemInfo::GetDeviceVendorName()
|
||||
{
|
||||
return "Apple";
|
||||
static const std::string vendorName = "Apple";
|
||||
return vendorName;
|
||||
}
|
||||
|
||||
const std::string& SystemInfo::GetDeviceModelName()
|
||||
|
||||
Reference in New Issue
Block a user