Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/Common/UpdateProduce.h')
-rwxr-xr-xCPP/7zip/UI/Common/UpdateProduce.h22
1 files changed, 10 insertions, 12 deletions
diff --git a/CPP/7zip/UI/Common/UpdateProduce.h b/CPP/7zip/UI/Common/UpdateProduce.h
index 8f58dab9..7e1a4a3f 100755
--- a/CPP/7zip/UI/Common/UpdateProduce.h
+++ b/CPP/7zip/UI/Common/UpdateProduce.h
@@ -7,25 +7,23 @@
struct CUpdatePair2
{
- // bool OperationIsCompress;
bool NewData;
- bool NewProperties;
-
- bool ExistInArchive;
- bool ExistOnDisk;
+ bool NewProps;
bool IsAnti;
- int ArchiveItemIndex;
- int DirItemIndex;
+
+ int DirIndex;
+ int ArcIndex;
+ int NewNameIndex;
- bool NewNameIsDefined;
- UString NewName;
+ bool ExistOnDisk() const { return DirIndex != -1; }
+ bool ExistInArchive() const { return ArcIndex != -1; }
- CUpdatePair2(): NewNameIsDefined(false) {}
+ CUpdatePair2(): IsAnti(false), DirIndex(-1), ArcIndex(-1), NewNameIndex(-1) {}
};
void UpdateProduce(
- const CObjectVector<CUpdatePair> &updatePairs,
+ const CRecordVector<CUpdatePair> &updatePairs,
const NUpdateArchive::CActionSet &actionSet,
- CObjectVector<CUpdatePair2> &operationChain);
+ CRecordVector<CUpdatePair2> &operationChain);
#endif