Replace use of QString::sprintf

This commit is contained in:
Jonas Kvinge 2019-12-21 18:17:58 +01:00
parent b5a897bb4d
commit 6c6bceb8cc
1 changed files with 1 additions and 2 deletions

View File

@ -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));