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

Function GetVersion

Src/DirViewColItems.cpp:586–595  ·  view source on GitHub ↗

* @brief Format Version info to string. * @param [in] pCtxt Pointer to compare context. * @param [in] pdi Pointer to DIFFITEM. * @param [in] bLeft Is the item left-size item? * @return String proper to show in the GUI. */

Source from the content-addressed store, hash-verified

584 * @return String proper to show in the GUI.
585 */
586static String GetVersion(const CDiffContext * pCtxt, const DIFFITEM *pdi, int nIndex)
587{
588 DIFFITEM &di = const_cast<DIFFITEM &>(*pdi);
589 DiffFileInfo & dfi = di.diffFileInfo[nIndex];
590 if (dfi.version.IsCleared())
591 {
592 pCtxt->UpdateVersion(di, nIndex);
593 }
594 return dfi.version.GetFileVersionString();
595}
596
597static uint64_t GetVersionQWORD(const CDiffContext * pCtxt, const DIFFITEM *pdi, int nIndex)
598{

Callers 1

ColVersionGetFunction · 0.85

Calls 3

IsClearedMethod · 0.80
UpdateVersionMethod · 0.80
GetFileVersionStringMethod · 0.80

Tested by

no test coverage detected