Commit 02c8e7d5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify variable

parent 24dfc100
Pipeline #174448 passed with stage
in 3 minutes and 46 seconds
......@@ -172,7 +172,7 @@ bool AttachPropertyDialog::saveProperty(QTreeWidget *lv, KTNEFPropertySet *pSet,
KMessageBox::error(parent, i18nc("@info", "The selected item cannot be saved because it has an empty tag."));
} else {
QString tag = item->text(2);
int key = tag.midRef(5).toInt();
const int key = tag.midRef(5).toInt();
QVariant prop = (tag.startsWith(QLatin1String("attr_")) ? pSet->attribute(key) : pSet->property(key));
QString filename = QFileDialog::getSaveFileName(parent, QString(), tag, QString());
if (!filename.isEmpty()) {
......
......@@ -100,7 +100,7 @@ QList<KTNEFAttach *> KTNEFView::getSelection()
{
mAttachments.clear();
QList<QTreeWidgetItem *> list = selectedItems();
const QList<QTreeWidgetItem *> list = selectedItems();
if (list.isEmpty() || !list.first()) {
return mAttachments;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment