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

Method LoadProjectFile

Src/Merge.cpp:1456–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1454}
1455
1456bool CMergeApp::LoadProjectFile(const String& sProject, ProjectFile &project)
1457{
1458 if (sProject.empty())
1459 return false;
1460
1461 try
1462 {
1463 project.Read(sProject);
1464 }
1465 catch (Poco::Exception& e)
1466 {
1467 String sErr = _("Unknown error opening project file.");
1468 sErr += ucr::toTString(e.displayText());
1469 String msg = strutils::format_string2(_("Cannot open file\n%1\n\n%2"), sProject, sErr);
1470 AfxMessageBox(msg.c_str(), MB_ICONSTOP);
1471 return false;
1472 }
1473
1474 return true;
1475}
1476
1477bool CMergeApp::SaveProjectFile(const String& sProject, const ProjectFile &project)
1478{

Callers

nothing calls this directly

Calls 5

toTStringFunction · 0.85
displayTextMethod · 0.80
format_string2Function · 0.50
emptyMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected