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

Method OpenFiles

Src/DiffFileData.cpp:36–44  ·  view source on GitHub ↗

@brief Open file descriptors in the inf structure (return false if failure) */

Source from the content-addressed store, hash-verified

34
35/** @brief Open file descriptors in the inf structure (return false if failure) */
36bool DiffFileData::OpenFiles(const String& szFilepath1, const String& szFilepath2)
37{
38 m_FileLocation[0].setPath(szFilepath1);
39 m_FileLocation[1].setPath(szFilepath2);
40 bool b = DoOpenFiles();
41 if (!b)
42 Reset();
43 return b;
44}
45
46/** @brief stash away true names for display, before opening files */
47void DiffFileData::SetDisplayFilepaths(const String& szTrueFilepath1, const String& szTrueFilepath2)

Callers 3

RunFileDiffMethod · 0.80
CompareFilesMethod · 0.80
FilePairMethod · 0.80

Calls 2

ResetFunction · 0.85
setPathMethod · 0.45

Tested by 1

FilePairMethod · 0.64