X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/00375592f92f68c4ca3f44d8e839bcfd47adc4e1..c8e1af672f46e93ae2fe6d7f9d5b35a3d8d49c16:/include/wx/archive.h?ds=sidebyside diff --git a/include/wx/archive.h b/include/wx/archive.h index fb5a647383..e6003c66cb 100644 --- a/include/wx/archive.h +++ b/include/wx/archive.h @@ -67,6 +67,7 @@ public: protected: wxArchiveEntry() : m_notifier(NULL) { } + wxArchiveEntry(const wxArchiveEntry& e) : wxObject(e), m_notifier(NULL) { } virtual void SetOffset(wxFileOffset offset) = 0; virtual wxArchiveEntry* DoClone() const = 0; @@ -149,7 +150,6 @@ public: virtual bool CopyArchiveMetaData(wxArchiveInputStream& stream) = 0; virtual bool CloseEntry() = 0; - virtual bool Close() = 0; protected: wxArchiveOutputStream(wxOutputStream& stream, wxMBConv& conv); @@ -212,14 +212,14 @@ private: #include #include -template -void WXDLLIMPEXP_BASE _wxSetArchiveIteratorValue( +template inline +void _wxSetArchiveIteratorValue( X& val, Y entry, void *WXUNUSED(d)) { val = X(entry); } -template -void WXDLLIMPEXP_BASE _wxSetArchiveIteratorValue( +template inline +void _wxSetArchiveIteratorValue( std::pair& val, Z entry, Z WXUNUSED(d)) { val = std::make_pair(X(entry->GetInternalName()), Y(entry)); @@ -230,7 +230,7 @@ template #else template #endif -class WXDLLIMPEXP_BASE wxArchiveIterator +class wxArchiveIterator { public: typedef std::input_iterator_tag iterator_category; @@ -284,14 +284,12 @@ public: return it; } - friend bool operator ==(const wxArchiveIterator& i, - const wxArchiveIterator& j) { - return i.m_rep == j.m_rep; + bool operator ==(const wxArchiveIterator& j) const { + return m_rep == j.m_rep; } - friend bool operator !=(const wxArchiveIterator& i, - const wxArchiveIterator& j) { - return !(i == j); + bool operator !=(const wxArchiveIterator& j) const { + return !(*this == j); } private: