diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2012-01-31 14:19:50 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-01-31 14:19:50 +0100 |
| commit | e932ebbf029a4cdb38c61a838e8f3669debd410e (patch) | |
| tree | 88dfbcd0225040c099cde43777de78bd04f87dd3 /zip | |
| parent | a25375366dba50e2124aef024204c8d647dbfafc (diff) | |
| download | tuxcmd-modules-e932ebbf029a4cdb38c61a838e8f3669debd410e.tar.xz | |
ZipArchive: GCC 4.7 compatibility
Diffstat (limited to 'zip')
| -rw-r--r-- | zip/ZipArchive/ZipCollections_stl.h | 16 | ||||
| -rw-r--r-- | zip/ZipArchive/stdafx.h | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/zip/ZipArchive/ZipCollections_stl.h b/zip/ZipArchive/ZipCollections_stl.h index 8792a6e..3facaad 100644 --- a/zip/ZipArchive/ZipCollections_stl.h +++ b/zip/ZipArchive/ZipCollections_stl.h @@ -86,10 +86,10 @@ public: }
TYPE& GetAt(size_t uIndex) {return this->at(uIndex);}
const TYPE& GetAt(size_t uIndex) const {return this->at(uIndex);}
- size_t Add(const TYPE& x) {push_back(x);return GetUpperBound();}
+ size_t Add(const TYPE& x) {this->push_back(x);return GetUpperBound();}
void RemoveAll() {this->clear();}
- void RemoveAt(size_t uIndex) { erase(GetIterFromIndex(uIndex));}
- void InsertAt(size_t uIndex, const TYPE& x){insert(GetIterFromIndex(uIndex), x);}
+ void RemoveAt(size_t uIndex) { this->erase(GetIterFromIndex(uIndex));}
+ void InsertAt(size_t uIndex, const TYPE& x){this->insert(GetIterFromIndex(uIndex), x);}
TYPE& operator[](size_t uIndex)
{
@@ -114,8 +114,8 @@ public: typedef typename std::list<TYPE>::iterator iterator;
typedef typename std::list<TYPE>::const_iterator const_iterator;
size_t GetCount() const {return this->size();}
- void AddTail(const TYPE& x){push_back(x);}
- void AddHead(const TYPE& x){push_front(x);}
+ void AddTail(const TYPE& x){this->push_back(x);}
+ void AddHead(const TYPE& x){this->push_front(x);}
void RemoveHead() {this->pop_front();}
void RemoveTail() {this->pop_back();}
void RemoveAll() {this->clear();}
@@ -131,7 +131,7 @@ public: TYPE& GetPrev(iterator& pos) { return *pos--;}
TYPE GetPrev(iterator& pos) const{ return *pos--;}
iterator Find(TYPE& x) { return std::find(this->begin(), this->end(), x);}
- void RemoveAt(iterator& pos) { erase(pos);}
+ void RemoveAt(iterator& pos) { this->erase(pos);}
bool IteratorValid(const_iterator &iter) const
{
return iter != this->end();
@@ -167,11 +167,11 @@ public: typedef typename std::map<KEY,VALUE, std::less<KEY>, std::allocator<std::pair<const KEY, VALUE> > >::value_type v_type;
void SetAt( KEY key, VALUE newValue)
{
- insert(v_type(key, newValue));
+ this->insert(v_type(key, newValue));
}
ZBOOL RemoveKey( KEY key )
{
- return erase(key) != 0;
+ return this->erase(key) != 0;
}
ZBOOL Lookup( KEY key, VALUE& rValue ) const
{
diff --git a/zip/ZipArchive/stdafx.h b/zip/ZipArchive/stdafx.h index 9d96081..db54a41 100644 --- a/zip/ZipArchive/stdafx.h +++ b/zip/ZipArchive/stdafx.h @@ -67,7 +67,7 @@ #define ZIP_SIZE_TYPE DWORD
#define ZIP_ZLIB_TYPE int
-#if !defined(_INTPTR_T_DEFINED) && !defined(__GNUC__)
+#if !defined(_INTPTR_T_DEFINED)
#if defined (__BORLANDC__)
#include <stdint.h>
#elif _MSC_VER <= 1200 || !defined _MSC_VER
|
