forked from qt-creator/qt-creator
CMake: Only pass the path mapper to the cbp-parser
No need to pass in the complete kit. Remove a couple of unnecessary namespace names. Change-Id: I2ac895535a80b4a54a423ce62dbdede65b67437b Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -228,11 +228,11 @@ void CMakeTool::setPathMapper(const CMakeTool::PathMapper &pathMapper)
|
||||
m_pathMapper = pathMapper;
|
||||
}
|
||||
|
||||
QString CMakeTool::mapAllPaths(const ProjectExplorer::Kit *kit, const QString &in) const
|
||||
CMakeTool::PathMapper CMakeTool::pathMapper() const
|
||||
{
|
||||
if (m_pathMapper)
|
||||
return m_pathMapper(kit, in);
|
||||
return in;
|
||||
return m_pathMapper;
|
||||
return [](const QString &s) { return s; };
|
||||
}
|
||||
|
||||
void CMakeTool::readInformation(CMakeTool::QueryType type) const
|
||||
|
||||
Reference in New Issue
Block a user