on xenial help sign in
Standardize on '&varName' instead of 'TypeName&'
5bed8a1Dalton Durst
plugins/Utils/windowstatestorage.cpp+2−2
@@ -34,7 +34,7 @@ class AsyncQuery: public QObject
34 Q_OBJECT
34 Q_OBJECT
35
35
36public:
36public:
37− AsyncQuery(const QString& dbName):
37+ AsyncQuery(const QString &dbName):
38 m_dbName(dbName)
38 m_dbName(dbName)
39 {
39 {
40 }
40 }
@@ -269,7 +269,7 @@ const QString AsyncQuery::m_saveGeometryQuery = QStringLiteral("INSERT OR REPLAC
269const QString AsyncQuery::m_getStageQuery = QStringLiteral("SELECT stage FROM stage WHERE appId = :appId");
269const QString AsyncQuery::m_getStageQuery = QStringLiteral("SELECT stage FROM stage WHERE appId = :appId");
270const QString AsyncQuery::m_saveStageQuery = QStringLiteral("INSERT OR REPLACE INTO stage (appId, stage) values (:appId, :stage)");
270const QString AsyncQuery::m_saveStageQuery = QStringLiteral("INSERT OR REPLACE INTO stage (appId, stage) values (:appId, :stage)");
271
271
272−WindowStateStorage::WindowStateStorage(const QString& dbName, QObject *parent):
272+WindowStateStorage::WindowStateStorage(const QString &dbName, QObject *parent):
273 QObject(parent),
273 QObject(parent),
274 m_thread()
274 m_thread()
275{
275{
plugins/Utils/windowstatestorage.h+1−1
@@ -50,7 +50,7 @@ public:
50 Q_DECLARE_FLAGS(WindowStates, WindowState)
50 Q_DECLARE_FLAGS(WindowStates, WindowState)
51 Q_FLAG(WindowStates)
51 Q_FLAG(WindowStates)
52
52
53− WindowStateStorage(const QString& dbName = nullptr, QObject *parent = nullptr);
53+ WindowStateStorage(const QString &dbName = nullptr, QObject *parent = nullptr);
54 virtual ~WindowStateStorage();
54 virtual ~WindowStateStorage();
55
55
56 Q_INVOKABLE WindowState getState(const QString &windowId, WindowState defaultValue) const;
56 Q_INVOKABLE WindowState getState(const QString &windowId, WindowState defaultValue) const;