diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2018-07-04 18:22:53 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2018-07-10 09:54:02 +0000 |
commit | 0387fc0f935a0a9e1f9a434dc1b87b31a6b39d61 (patch) | |
tree | 894712f30645619a56e085c10b90ff83c7ba876b | |
parent | a073c267dafa2fdb2559a8d4320e1f8eb47a8e35 (diff) |
use initializer list
Change-Id: I15fdcf313db913df91a1a93684e1d60de7bf16bd
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/coreplugin/documentmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/documentmanager.cpp b/src/plugins/coreplugin/documentmanager.cpp index f8222a3682..a647930e35 100644 --- a/src/plugins/coreplugin/documentmanager.cpp +++ b/src/plugins/coreplugin/documentmanager.cpp @@ -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) |