chore: remove unneeded conversions between wstring and u16string (#30047)
This commit is contained in:
parent
ccfde6c9d4
commit
21f6937728
13 changed files with 63 additions and 66 deletions
|
@ -423,7 +423,7 @@ bool IsDeviceNameValid(const std::u16string& device_name) {
|
|||
return printer_exists;
|
||||
#elif defined(OS_WIN)
|
||||
printing::ScopedPrinterHandle printer;
|
||||
return printer.OpenPrinterWithName(base::UTF16ToWide(device_name).c_str());
|
||||
return printer.OpenPrinterWithName(base::as_wcstr(device_name));
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue