MCPcopy Create free account
hub / github.com/KDE/kdiff3 / buildMergeMap

Method buildMergeMap

src/directorymergewindow.cpp:736–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

734}
735
736void DirectoryMergeWindow::DirectoryMergeWindowPrivate::buildMergeMap(const QSharedPointer<DirectoryInfo>& dirInfo)
737{
738 if(dirInfo->dirA().isValid())
739 {
740 for(FileAccess& fileRecord: dirInfo->getDirListA())
741 {
742 MergeFileInfos& mfi = m_fileMergeMap[FileKey(fileRecord)];
743
744 mfi.setFileInfoA(&fileRecord);
745 }
746 }
747
748 if(dirInfo->dirB().isValid())
749 {
750 for(FileAccess& fileRecord: dirInfo->getDirListB())
751 {
752 MergeFileInfos& mfi = m_fileMergeMap[FileKey(fileRecord)];
753
754 mfi.setFileInfoB(&(fileRecord));
755 }
756 }
757
758 if(dirInfo->dirC().isValid())
759 {
760 for(FileAccess& fileRecord: dirInfo->getDirListC())
761 {
762 MergeFileInfos& mfi = m_fileMergeMap[FileKey(fileRecord)];
763
764 mfi.setFileInfoC(&(fileRecord));
765 }
766 }
767}
768
769bool DirectoryMergeWindow::DirectoryMergeWindowPrivate::init(
770 bool bDirectoryMerge,

Callers

nothing calls this directly

Calls 5

FileKeyClass · 0.85
setFileInfoAMethod · 0.80
setFileInfoBMethod · 0.80
setFileInfoCMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected