CMake: Remove CMakeBuildTarget::clear()

One of the few users of the non-const FileName::clear().

Change-Id: Ic1fa5c5ec24ff41170317bf46ed61543a6bfcb42
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2019-05-14 12:14:48 +02:00
parent 7ad5313c3b
commit 790bcf5ef0
5 changed files with 1 additions and 51 deletions

View File

@@ -234,7 +234,7 @@ void CMakeCbpParser::parseBuild()
void CMakeCbpParser::parseBuildTarget()
{
m_buildTarget.clear();
m_buildTarget = CMakeBuildTarget();
if (attributes().hasAttribute("title"))
m_buildTarget.title = attributes().value("title").toString();