style(registry): fix constructor initializer list style

This commit is contained in:
Oleg Shparber 2019-09-30 23:22:44 -04:00
parent 579afac786
commit 6b92ce4ab7
4 changed files with 9 additions and 9 deletions

View File

@ -64,8 +64,8 @@ const char IsJavaScriptEnabled[] = "isJavaScriptEnabled";
static void sqliteScoreFunction(sqlite3_context *context, int argc, sqlite3_value **argv);
Docset::Docset(QString path) :
m_path(std::move(path))
Docset::Docset(QString path)
: m_path(std::move(path))
{
QDir dir(m_path);
if (!dir.exists())

View File

@ -31,9 +31,9 @@
using namespace Zeal::Registry;
ListModel::ListModel(DocsetRegistry *docsetRegistry) :
QAbstractItemModel(docsetRegistry),
m_docsetRegistry(docsetRegistry)
ListModel::ListModel(DocsetRegistry *docsetRegistry)
: QAbstractItemModel(docsetRegistry)
, m_docsetRegistry(docsetRegistry)
{
connect(m_docsetRegistry, &DocsetRegistry::docsetLoaded, this, &ListModel::addDocset);
connect(m_docsetRegistry, &DocsetRegistry::docsetAboutToBeUnloaded, this, &ListModel::removeDocset);

View File

@ -28,8 +28,8 @@
using namespace Zeal::Registry;
SearchModel::SearchModel(QObject *parent) :
QAbstractListModel(parent)
SearchModel::SearchModel(QObject *parent)
: QAbstractListModel(parent)
{
}

View File

@ -32,8 +32,8 @@ const char prefixSeparator = ':';
const char keywordSeparator = ',';
}
SearchQuery::SearchQuery(QString query, const QStringList &keywords) :
m_query(std::move(query))
SearchQuery::SearchQuery(QString query, const QStringList &keywords)
: m_query(std::move(query))
{
setKeywords(keywords);
}