From 473a741c9fcf09febba312464fab8385e2351181 Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 28 May 2019 13:49:26 +0200 Subject: Utils: Rename FileName to FilePath More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler --- src/plugins/cppcheck/cppchecktrigger.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/plugins/cppcheck/cppchecktrigger.cpp') diff --git a/src/plugins/cppcheck/cppchecktrigger.cpp b/src/plugins/cppcheck/cppchecktrigger.cpp index cac3772948..a69497f9fa 100644 --- a/src/plugins/cppcheck/cppchecktrigger.cpp +++ b/src/plugins/cppcheck/cppchecktrigger.cpp @@ -83,12 +83,12 @@ void CppcheckTrigger::checkEditors(const QList &editors) const QList editorList = !editors.isEmpty() ? editors : Core::DocumentModel::editorsForOpenedDocuments(); - Utils::FileNameList toCheck; + Utils::FilePathList toCheck; for (const Core::IEditor *editor : editorList) { QTC_ASSERT(editor, continue); Core::IDocument *document = editor->document(); QTC_ASSERT(document, continue); - const Utils::FileName &path = document->filePath(); + const Utils::FilePath &path = document->filePath(); if (path.isEmpty()) continue; @@ -128,12 +128,12 @@ void CppcheckTrigger::removeEditors(const QList &editors) const QList editorList = !editors.isEmpty() ? editors : Core::DocumentModel::editorsForOpenedDocuments(); - Utils::FileNameList toRemove; + Utils::FilePathList toRemove; for (const Core::IEditor *editor : editorList) { QTC_ASSERT(editor, return); const Core::IDocument *document = editor->document(); QTC_ASSERT(document, return); - const Utils::FileName &path = document->filePath(); + const Utils::FilePath &path = document->filePath(); if (path.isEmpty()) return; @@ -156,7 +156,7 @@ void CppcheckTrigger::checkChangedDocument(Core::IDocument *document) if (!m_currentProject) return; - const Utils::FileName &path = document->filePath(); + const Utils::FilePath &path = document->filePath(); QTC_ASSERT(!path.isEmpty(), return); if (!m_checkedFiles.contains(path)) return; @@ -185,12 +185,12 @@ void CppcheckTrigger::updateProjectFiles(ProjectExplorer::Project *project) checkEditors(Core::DocumentModel::editorsForOpenedDocuments()); } -void CppcheckTrigger::check(const Utils::FileNameList &files) +void CppcheckTrigger::check(const Utils::FilePathList &files) { m_tool.check(files); } -void CppcheckTrigger::remove(const Utils::FileNameList &files) +void CppcheckTrigger::remove(const Utils::FilePathList &files) { m_marks.clearFiles(files); m_tool.stop(files); -- cgit v1.2.1