diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-24 10:09:16 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-19 10:35:26 +0000 |
commit | 78bba7b0029f9c626f0c686339dec9a9bf9466c6 (patch) | |
tree | 4fc03e86a39b7b03383a0f1651c78a599445abe6 /src/gui/text/qzip.cpp | |
parent | 74a658599f84a2548186c616405e39d1430e4f6c (diff) |
Clean up QZipReader::FileInfo
- don't define special member functions if the compiler-generated
ones are just fine (inhibits move semantics)
- implement all remaining methods inline
- unexport
- remove unused (and, to add insult to injury, never init'ed)
d-pointer. This is private API. No need for a d-pointer,
much less an unused one.
Change-Id: I6979cb5103a361c0313c252d3bf7073a3c47addd
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/text/qzip.cpp')
-rw-r--r-- | src/gui/text/qzip.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/gui/text/qzip.cpp b/src/gui/text/qzip.cpp index 40088d573a..00a1aa397c 100644 --- a/src/gui/text/qzip.cpp +++ b/src/gui/text/qzip.cpp @@ -411,38 +411,6 @@ struct FileHeader }; Q_DECLARE_TYPEINFO(FileHeader, Q_MOVABLE_TYPE); -QZipReader::FileInfo::FileInfo() - : isDir(false), isFile(false), isSymLink(false), crc(0), size(0) -{ -} - -QZipReader::FileInfo::~FileInfo() -{ -} - -QZipReader::FileInfo::FileInfo(const FileInfo &other) -{ - operator=(other); -} - -QZipReader::FileInfo& QZipReader::FileInfo::operator=(const FileInfo &other) -{ - filePath = other.filePath; - isDir = other.isDir; - isFile = other.isFile; - isSymLink = other.isSymLink; - permissions = other.permissions; - crc = other.crc; - size = other.size; - lastModified = other.lastModified; - return *this; -} - -bool QZipReader::FileInfo::isValid() const -{ - return isDir || isFile || isSymLink; -} - class QZipPrivate { public: |