forked from qt-creator/qt-creator
CppTools: Fix compile with older Qt / gcc
Change-Id: I00656b409135ee1a84a0a372f726fdbc7c20d1e6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -605,10 +605,10 @@ QString CompilerOptionsBuilder::includeDirOptionForPath(const QString &path) con
|
|||||||
{
|
{
|
||||||
if (m_useSystemHeader == UseSystemHeader::No
|
if (m_useSystemHeader == UseSystemHeader::No
|
||||||
|| path.startsWith(m_projectPart.project->rootProjectDirectory().toString())) {
|
|| path.startsWith(m_projectPart.project->rootProjectDirectory().toString())) {
|
||||||
return includeUserPathOption;
|
return QLatin1String(includeUserPathOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
return includeSystemPathOption;
|
return QLatin1String(includeSystemPathOption);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CompilerOptionsBuilder::excludeDefineDirective(const ProjectExplorer::Macro ¯o) const
|
bool CompilerOptionsBuilder::excludeDefineDirective(const ProjectExplorer::Macro ¯o) const
|
||||||
|
Reference in New Issue
Block a user