forked from qt-creator/qt-creator
use initializer list
Change-Id: I15fdcf313db913df91a1a93684e1d60de7bf16bd Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user