Bug 1384944 - Replace NS_ConvertASCIItoUTF16 by NS_ConvertUTF8toUTF16; r=padenot

--HG--
extra : rebase_source : e717dd2c4a0e96edb225443d157b4a761b1ec524
This commit is contained in:
Chun-Min Chang 2017-07-28 15:41:20 +08:00
Родитель 567f1c90d0
Коммит 261bda646c
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -610,9 +610,9 @@ void GetDeviceCollection(nsTArray<RefPtr<AudioDeviceInfo>>& aDeviceInfos,
for (unsigned int i = 0; i < collection.count; ++i) {
auto device = collection.device[i];
RefPtr<AudioDeviceInfo> info =
new AudioDeviceInfo(NS_ConvertASCIItoUTF16(device.friendly_name),
NS_ConvertASCIItoUTF16(device.group_id),
NS_ConvertASCIItoUTF16(device.vendor_name),
new AudioDeviceInfo(NS_ConvertUTF8toUTF16(device.friendly_name),
NS_ConvertUTF8toUTF16(device.group_id),
NS_ConvertUTF8toUTF16(device.vendor_name),
ConvertCubebType(device.type),
ConvertCubebState(device.state),
ConvertCubebPreferred(device.preferred),