aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cpaster
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2021-11-01 17:02:02 +0100
committerEike Ziller <eike.ziller@qt.io>2021-11-02 08:11:14 +0000
commit195abefe7da8325816081c67062c89a11cf734da (patch)
treedf1e26e51f079b09a358a9fe79da04ceb32da538 /src/plugins/cpaster
parent4dac32d6610db6c2f0c99b1d966ab53f38cd26e9 (diff)
EditorManager: Remove QString openEditor(At) overloads
In favor of the FilePath/Link ones. Change-Id: I5caf9e0f8de304ff4ee12329557aa50a6f3a0c69 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r--src/plugins/cpaster/cpasterplugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp
index bd725d555d..beda75c4f6 100644
--- a/src/plugins/cpaster/cpasterplugin.cpp
+++ b/src/plugins/cpaster/cpasterplugin.cpp
@@ -400,10 +400,10 @@ void CodePasterPluginPrivate::finishFetch(const QString &titleDescription,
MessageManager::writeDisrupting(saver.errorString());
return;
}
- const QString fileName = saver.filePath().toString();
- m_fetchedSnippets.push_back(fileName);
+ const Utils::FilePath filePath = saver.filePath();
+ m_fetchedSnippets.push_back(filePath.toString());
// Open editor with title.
- IEditor *editor = EditorManager::openEditor(fileName);
+ IEditor *editor = EditorManager::openEditor(filePath);
QTC_ASSERT(editor, return);
editor->document()->setPreferredDisplayName(titleDescription);
}