Commit 8651f909 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix type: the SafeZip is Safe, not Saving.

parent df70a870
......@@ -30,11 +30,11 @@
#include <QUrl>
class SaveZip : public KZip {
class SafeZip : public KZip {
public:
SaveZip(const QString &filename) : KZip(filename) {}
SaveZip(QIODevice *dev) : KZip(dev) {}
~SaveZip() override {}
SafeZip(const QString &filename) : KZip(filename) {}
SafeZip(QIODevice *dev) : KZip(dev) {}
~SafeZip() override {}
void resetDevice() {
closeArchive();
setDevice(0);
......@@ -52,7 +52,7 @@ KoLegacyZipStore::KoLegacyZipStore(const QString & _filename, Mode mode, const Q
d->localFileName = _filename;
m_pZip = new SaveZip(_filename);
m_pZip = new SafeZip(_filename);
init(appIdentification); // open the zip file and init some vars
}
......@@ -65,7 +65,7 @@ KoLegacyZipStore::KoLegacyZipStore(QIODevice *dev, Mode mode, const QByteArray &
// << " mode = " << int(mode)
// << " mimetype = " << appIdentification;
m_pZip = new SaveZip(dev);
m_pZip = new SafeZip(dev);
init(appIdentification);
}
......@@ -91,7 +91,7 @@ KoLegacyZipStore::KoLegacyZipStore(QWidget* window, const QUrl &_url, const QStr
f.close();
}
m_pZip = new SaveZip(d->localFileName);
m_pZip = new SafeZip(d->localFileName);
init(appIdentification); // open the zip file and init some vars
}
......
......@@ -22,7 +22,7 @@
#include "KoStore.h"
class SaveZip;
class SafeZip;
class KArchiveDirectory;
class QUrl;
......@@ -62,7 +62,7 @@ protected:
private:
// The archive
SaveZip * m_pZip;
SafeZip * m_pZip;
// In "Read" mode this pointer is pointing to the current directory in the archive to speed up the verification process
const KArchiveDirectory* m_currentDir;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment