use initializer list

Change-Id: I15fdcf313db913df91a1a93684e1d60de7bf16bd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tim Jenssen
2018-07-04 18:22:53 +02:00
parent a073c267da
commit 0387fc0f93

View File

@@ -451,7 +451,7 @@ void DocumentManager::filePathChanged(const FileName &oldName, const FileName &n
*/
void DocumentManager::addDocument(IDocument *document, bool addWatcher)
{
addDocuments(QList<IDocument *>() << document, addWatcher);
addDocuments({document}, addWatcher);
}
void DocumentManager::documentDestroyed(QObject *obj)