src/main.cpp

changeset 325
64ddcd77639f
parent 311
fab454611f9b
child 327
2aa15daa0216
equal deleted inserted replaced
324:d9bab5d22c98 325:64ddcd77639f
456 openModelFromPath(path, &libraries, &documents, &mainWindow); 456 openModelFromPath(path, &libraries, &documents, &mainWindow);
457 } 457 }
458 ); 458 );
459 } 459 }
460 }; 460 };
461 static constexpr auto executeAction = [&]( 461 const auto executeAction = [&](
462 Model* model, const ModelAction& action 462 Model* model, const ModelAction& action
463 ) { 463 ) {
464 std::visit(overloaded{ 464 std::visit(overloaded{
465 [model](const AppendToModel& action){ 465 [model](const AppendToModel& action){
466 model->append(action.newElement); 466 model->append(action.newElement);

mercurial