Commit 8cc451a2 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use error.Set instead of error.Format

parent 723c2c7f
...@@ -156,7 +156,7 @@ osx_output_set_device(OSXOutput *oo, Error &error) ...@@ -156,7 +156,7 @@ osx_output_set_device(OSXOutput *oo, Error &error)
} }
if (!CFStringGetCString(cfname, name, sizeof(name), kCFStringEncodingUTF8)) { if (!CFStringGetCString(cfname, name, sizeof(name), kCFStringEncodingUTF8)) {
error.Format(osx_output_domain, "Unable to convert device name from CFString to char*"); error.Set(osx_output_domain, "Unable to convert device name from CFStringRef to char*");
ret = false; ret = false;
goto done; goto done;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment