Change some function parameters with negated name

Change some function parameters which are named like "dont..." to make a
positive statement. This should hopefully avoid some confisions with
double negation.
This commit is contained in:
Martin Kleusberg
2021-01-22 17:52:32 +01:00
parent 06200bfb44
commit e54664dd03
12 changed files with 29 additions and 29 deletions

View File

@@ -284,13 +284,13 @@ private:
bool tryEncryptionSettings(const QString& filename, bool* encrypted, CipherSettings*& cipherSettings) const;
bool dontCheckForStructureUpdates;
bool disableStructureUpdateChecks;
class NoStructureUpdateChecks
{
public:
explicit NoStructureUpdateChecks(DBBrowserDB& db) : m_db(db) { m_db.dontCheckForStructureUpdates = true; }
~NoStructureUpdateChecks() { m_db.dontCheckForStructureUpdates = false; }
explicit NoStructureUpdateChecks(DBBrowserDB& db) : m_db(db) { m_db.disableStructureUpdateChecks = true; }
~NoStructureUpdateChecks() { m_db.disableStructureUpdateChecks = false; }
private:
DBBrowserDB& m_db;