mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-22 21:53:03 +03:00
style(registry): fix constructor initializer list style
This commit is contained in:
parent
579afac786
commit
6b92ce4ab7
@ -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())
|
||||
|
@ -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);
|
||||
|
@ -28,8 +28,8 @@
|
||||
|
||||
using namespace Zeal::Registry;
|
||||
|
||||
SearchModel::SearchModel(QObject *parent) :
|
||||
QAbstractListModel(parent)
|
||||
SearchModel::SearchModel(QObject *parent)
|
||||
: QAbstractListModel(parent)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user