diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-07-03 17:18:06 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-07-09 09:38:03 +0200 |
commit | 3557603b1ef30edb57901948c6d1038d6b49b7ad (patch) | |
tree | 83b101e186eba2ed9b91580a0cd430c70e404554 /src/plugins/texteditor/findinopenfiles.cpp | |
parent | 02512e234eeb2621ba7d370a190df05fa6083db7 (diff) |
Editors: Don't use model index outside of model/view.
The model index is an internal detail of the model/view and shouldn't be
used outside that context.
Change-Id: I2c1f742fff427484f6ff244dd3e0d8428a7318d3
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/texteditor/findinopenfiles.cpp')
-rw-r--r-- | src/plugins/texteditor/findinopenfiles.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/findinopenfiles.cpp b/src/plugins/texteditor/findinopenfiles.cpp index c109e17126..2ef4414dec 100644 --- a/src/plugins/texteditor/findinopenfiles.cpp +++ b/src/plugins/texteditor/findinopenfiles.cpp @@ -67,9 +67,9 @@ Utils::FileIterator *FindInOpenFiles::files(const QStringList &nameFilters, QMap<QString, QTextCodec *> openEditorEncodings = ITextEditor::openedTextEditorsEncodings(); QStringList fileNames; QList<QTextCodec *> codecs; - foreach (const Core::OpenEditorsModel::Entry &entry, + foreach (Core::OpenEditorsModel::Entry *entry, Core::EditorManager::instance()->openedEditorsModel()->entries()) { - QString fileName = entry.fileName(); + QString fileName = entry->fileName(); if (!fileName.isEmpty()) { fileNames.append(fileName); QTextCodec *codec = openEditorEncodings.value(fileName); |