summaryrefslogtreecommitdiff
path: root/zip/ZipArchive/ZipCollections_mfc.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2023-12-17 21:23:58 +0100
committerTomas Bzatek <tbzatek@redhat.com>2023-12-17 21:23:58 +0100
commit02d6107c97b48888362e7c6a70dcac323c89d741 (patch)
tree5069a77adaf73f7249ac79b6c49a47168a647ef8 /zip/ZipArchive/ZipCollections_mfc.h
parent4e17c2527b106f1b493a3ac77c89858d14f834e2 (diff)
downloadtuxcmd-modules-02d6107c97b48888362e7c6a70dcac323c89d741.tar.xz
ZipArchive: Update to the 4.6.9 release
Diffstat (limited to 'zip/ZipArchive/ZipCollections_mfc.h')
-rw-r--r--zip/ZipArchive/ZipCollections_mfc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/zip/ZipArchive/ZipCollections_mfc.h b/zip/ZipArchive/ZipCollections_mfc.h
index 086bf64..b061f44 100644
--- a/zip/ZipArchive/ZipCollections_mfc.h
+++ b/zip/ZipArchive/ZipCollections_mfc.h
@@ -1,6 +1,6 @@
////////////////////////////////////////////////////////////////////////////////
-// This source file is part of the ZipArchive library source distribution and
-// is Copyrighted 2000 - 2007 by Artpol Software - Tadeusz Dracz
+// This source file is part of the ZipArchive Library Open Source distribution
+// and is Copyrighted 2000 - 2022 by Artpol Software - Tadeusz Dracz
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -9,7 +9,7 @@
//
// For the licensing details refer to the License.txt file.
//
-// Web Site: http://www.artpol-software.com
+// Web Site: https://www.artpol-software.com
////////////////////////////////////////////////////////////////////////////////
#ifndef ZIPARCHIVE_ZIPCOLLECTIONS_DOT_H
@@ -52,13 +52,15 @@ public:
}
void Sort(CompareFunction pFunction)
{
- INT_PTR uSize = GetSize();
- if (!uSize) // if ommitted operator [] will fail if empty
+ INT_PTR uSize = CArray<TYPE, TYPE>::GetSize();
+ if (!uSize) // if omitted operator [] will fail if empty
return;
qsort((void*)&((*this)[0]), (size_t)uSize , sizeof(TYPE), pFunction);
}
};
+typedef CZipArray<WORD> CZipWordArray;
+
template<class TYPE>
class CZipPtrList : public CTypedPtrList<CPtrList, TYPE>
{