Use error.Set instead of error.Format

This commit is contained in:
Jacob Vosmaer 2016-07-03 13:36:35 +02:00
parent 723c2c7fa9
commit 8cc451a2e2

View File

@ -156,7 +156,7 @@ osx_output_set_device(OSXOutput *oo, Error &error)
}
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;
goto done;
}