diff options
Diffstat (limited to 'src/plugins/clangtools/clangtoolsprojectsettings.cpp')
-rw-r--r-- | src/plugins/clangtools/clangtoolsprojectsettings.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/clangtools/clangtoolsprojectsettings.cpp b/src/plugins/clangtools/clangtoolsprojectsettings.cpp index 9f2bad1999..a44e2e0129 100644 --- a/src/plugins/clangtools/clangtoolsprojectsettings.cpp +++ b/src/plugins/clangtools/clangtoolsprojectsettings.cpp @@ -107,10 +107,8 @@ void ClangToolsProjectSettings::load() if (message.isEmpty()) continue; Utils::FileName fullPath = Utils::FileName::fromString(fp); - if (fullPath.toFileInfo().isRelative()) { - fullPath = m_project->projectDirectory(); - fullPath.appendPath(fp); - } + if (fullPath.toFileInfo().isRelative()) + fullPath = m_project->projectDirectory().pathAppended(fp); if (!fullPath.exists()) continue; const QString contextKind = diag.value(SETTINGS_KEY_SUPPRESSED_DIAGS_CONTEXTKIND).toString(); |