forked from qt-creator/qt-creator
VcsBase: Cleanup some Utils:: in cpp files
We are using namespace Utils in these files. Change-Id: I0526f7e4fff2fe0d24d1e2b9fa087298d5331955 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -1192,7 +1192,7 @@ void VcsBaseEditorWidget::jumpToChangeFromDiff(QTextCursor cursor)
|
||||
if (!exists)
|
||||
return;
|
||||
|
||||
Core::IEditor *ed = Core::EditorManager::openEditor(Utils::FilePath::fromString(fileName));
|
||||
Core::IEditor *ed = Core::EditorManager::openEditor(FilePath::fromString(fileName));
|
||||
if (auto editor = qobject_cast<BaseTextEditor *>(ed))
|
||||
editor->gotoLine(chunkStart + lineCount);
|
||||
}
|
||||
@@ -1269,7 +1269,7 @@ const VcsBaseEditorParameters *VcsBaseEditor::findType(const VcsBaseEditorParame
|
||||
static QTextCodec *findFileCodec(const QString &source)
|
||||
{
|
||||
Core::IDocument *document = Core::DocumentModel::documentForFilePath(
|
||||
Utils::FilePath::fromString(source));
|
||||
FilePath::fromString(source));
|
||||
if (auto textDocument = qobject_cast<Core::BaseTextDocument *>(document))
|
||||
return const_cast<QTextCodec *>(textDocument->codec());
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user