const map<string, shared_ptr<InputFormat> > formats =
context->input_formats();
- for (const pair<string, shared_ptr<InputFormat> > &f : formats) {
+ for (const pair<const string, shared_ptr<InputFormat> > &f : formats) {
assert(f.second);
QAction *const action = addAction(tr("Import %1...")
.arg(QString::fromStdString(f.second->description())));
- action->setData(qVariantFromValue((void*)f.second.get()));
+ action->setData(QVariant::fromValue((void*)f.second.get()));
mapper_.setMapping(action, action);
connect(action, SIGNAL(triggered()), &mapper_, SLOT(map()));
}