Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/gpu_info_util/SystemInfo_macos.mm
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@

if (platformExpert == IO_OBJECT_NULL)
{
return "";
return {};
}

CFDataRef modelData = static_cast<CFDataRef>(
IORegistryEntryCreateCFProperty(platformExpert, CFSTR("model"), kCFAllocatorDefault, 0));
if (modelData == nullptr)
{
IOObjectRelease(platformExpert);
return "";
return {};
}

std::string result = reinterpret_cast<const char *>(CFDataGetBytePtr(modelData));
std::string result(reinterpret_cast<const char *>(CFDataGetBytePtr(modelData)));

IOObjectRelease(platformExpert);
CFRelease(modelData);
Expand Down
2 changes: 1 addition & 1 deletion src/libANGLE/renderer/metal/mtl_common.mm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
{
if (!error)
{
return "";
return {};
}

std::stringstream errorStream;
Expand Down
2 changes: 1 addition & 1 deletion src/libANGLE/renderer/metal/mtl_utils.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ bool IsFrameCaptureEnabled()
std::string GetMetalCaptureFile()
{
#if !ANGLE_METAL_FRAME_CAPTURE_ENABLED
return "";
return {};
#else
auto var = std::getenv("ANGLE_METAL_FRAME_CAPTURE_FILE");
const std::string filePath = var ? var : "";
Expand Down