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