Replace use of QString::sprintf
This commit is contained in:
parent
b5a897bb4d
commit
6c6bceb8cc
|
@ -713,8 +713,7 @@ QList<QUrl> MacOsDeviceLister::MakeDeviceUrls(const QString& serial) {
|
|||
|
||||
if (IsMTPSerial(serial)) {
|
||||
const MTPDevice& device = mtp_devices_[serial];
|
||||
QString str;
|
||||
str.sprintf("gphoto2://usb-%d-%d/", device.bus, device.address);
|
||||
QString str = QString("gphoto2://usb-%d-%d/").arg(device.bus).arg(device.address);
|
||||
QUrlQuery url_query;
|
||||
url_query.addQueryItem("vendor", device.vendor);
|
||||
url_query.addQueryItem("vendor_id", QString::number(device.vendor_id));
|
||||
|
|
Loading…
Reference in New Issue