OSDN Git Service

Don't pass `DIFFITEM *` by casting to `uintptr_t` (1)
authorGreyMerlin <greymerlin7@gmail.com>
Sat, 5 Jan 2019 21:01:22 +0000 (13:01 -0800)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Wed, 16 Jan 2019 14:32:56 +0000 (23:32 +0900)
commitc30b5e126a1e2679db8071ea043f39655fa68630
tree5f545e764caddfe4609301d7df7e07971f4eb6c6
parent3f8c188d382e0cb9ff79e537b70f79f06d707371
Don't pass `DIFFITEM *` by casting to `uintptr_t` (1)

* Change DIFFITEM from `struct` to `class`
* Incorporate `ListEntry` class directly into DIFFITEM
* Change handling of m_Root (now m_pRoot) and `children`
* Eliminate all casting between `DIFFITEM *` and `uintptr_t`
* Isolate all manipulation of `DIFFITEM` linkage to be within the DIFFITEM class.

* Add `#include "StdAfx.h"` and `#define new DEBUG_NEW` to a few files
* Cleanup various related comments
* Eliminate the `ListEntry.h` file.  Also, it was never part of the project's Solution Explorer
tree.
30 files changed:
Src/7zCommon.h
Src/CompareEngines/BinaryCompare.h
Src/CompareEngines/TimeSizeCompare.h
Src/CompareStats.h
Src/DiffContext.cpp
Src/DiffContext.h
Src/DiffFileData.cpp
Src/DiffFileInfo.cpp
Src/DiffItem.cpp
Src/DiffItem.h
Src/DiffItemList.cpp
Src/DiffItemList.h
Src/DiffThread.cpp
Src/DirActions.cpp
Src/DirActions.h
Src/DirDoc.cpp
Src/DirDoc.h
Src/DirItem.cpp
Src/DirItemIterator.h
Src/DirScan.cpp
Src/DirScan.h
Src/DirTravel.cpp
Src/DirView.cpp
Src/DirView.h
Src/DirViewColItems.cpp
Src/DirViewColItems.h
Src/FolderCmp.cpp
Src/HexMergeDoc.cpp
Src/ListEntry.h [deleted file]
Src/Test.cpp