Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void StoreDiffData(DIFFITEM &di, CDiffContext * pCtxt,
- const FolderCmp * pCmpData)
- {
- ...
- GetLog()->Write
- (
- CLogFile::LCOMPAREDATA,
- _T("name=<%s>, leftdir=<%s>, rightdir=<%s>, code=%d"),
- di.left.filename.c_str(),
- di.left.path.c_str(),
- di.right.path.c_str(),
- di.diffcode
- );
- pCtxt->m_pCompareStats->AddItem(di.diffcode.diffcode);
- ...
- }
- 'di.diffcode' is class object. Most likely this is what should be written here: di.diffcode.diffcode.
- This suspicious code was found in WinMerge project by PVS-Studio static code analyzer.
- Warning message is:
- V510 The 'Write' function is not expected to receive class-type variable as sixth actual argument. Merge dirscan.cpp 565
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment