Commit 74a50831 authored by Ivan Donchevskii's avatar Ivan Donchevskii

Utils: remove unused variable in SaveFile class

Backup member was never set to true.

Change-Id: I21dc889813820e2a463c5ba812b18b57766e03c4
Reviewed-by: Oswald Buddenhagen's avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
parent 5003f644
......@@ -39,7 +39,7 @@ namespace Utils {
QFile::Permissions SaveFile::m_umask = 0;
SaveFile::SaveFile(const QString &filename) :
m_finalFileName(filename), m_finalized(true), m_backup(false)
m_finalFileName(filename), m_finalized(true)
{
}
......@@ -128,8 +128,7 @@ bool SaveFile::commit()
remove();
return false;
}
if (!m_backup)
QFile::remove(bakname);
QFile::remove(bakname);
return true;
}
......
......@@ -44,14 +44,11 @@ public:
void rollback();
bool commit();
void setBackup(bool backup) { m_backup = backup; }
static void initializeUmask();
private:
const QString m_finalFileName;
bool m_finalized;
bool m_backup;
static QFile::Permissions m_umask;
};
......
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