diff --git a/plugins/sms/smsplugin.cpp b/plugins/sms/smsplugin.cpp index 27074584f..335447544 100644 --- a/plugins/sms/smsplugin.cpp +++ b/plugins/sms/smsplugin.cpp @@ -62,7 +62,7 @@ void SmsPlugin::sendSms(const QDBusVariant& addresses, const QString& messageBod QList addressList = ConversationAddress::listfromDBus(addresses); QVariantList addressMapList; - for (const ConversationAddress address : addressList) { + for (const ConversationAddress& address : addressList) { QVariantMap addressMap({{QStringLiteral("address"), address.address()}}); addressMapList.append(addressMap); qDebug() < addressList = sourceModel()->data(index, ConversationListModel::AddressesRole).value>(); - for (const ConversationAddress address : addressList) { + const QList addressList = sourceModel()->data(index, ConversationListModel::AddressesRole).value>(); + for (const ConversationAddress& address : addressList) { QString canonicalAddress = SmsHelper::canonicalizePhoneNumber(address.address()); if (canonicalAddress.contains(filterRegExp())) { return true;