MCPcopy Create free account
hub / github.com/WinMerge/winmerge / SaveProjectFile

Method SaveProjectFile

Src/Merge.cpp:1477–1493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1475}
1476
1477bool CMergeApp::SaveProjectFile(const String& sProject, const ProjectFile &project)
1478{
1479 try
1480 {
1481 project.Save(sProject);
1482 }
1483 catch (Poco::Exception& e)
1484 {
1485 String sErr = _("Unknown error saving project file.");
1486 sErr += ucr::toTString(e.displayText());
1487 String msg = strutils::format_string2(_("Cannot open file\n%1\n\n%2"), sProject, sErr);
1488 AfxMessageBox(msg.c_str(), MB_ICONSTOP);
1489 return false;
1490 }
1491
1492 return true;
1493}
1494
1495/**
1496 * @brief Read project and perform comparison specified

Callers

nothing calls this directly

Calls 4

toTStringFunction · 0.85
SaveMethod · 0.80
displayTextMethod · 0.80
format_string2Function · 0.50

Tested by

no test coverage detected