Clang: Improve file path cache

Change-Id: I940dc63c0fc95fbb826ed7d19a1ac1e4db5a542c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-08-07 18:45:55 +02:00
parent d9b7092a87
commit 947cb9ed4e
8 changed files with 284 additions and 28 deletions

View File

@@ -181,7 +181,7 @@ public:
}
BasicSmallString(BasicSmallString &&other) noexcept
: m_data(other.m_data)
: m_data(std::move(other.m_data))
{
other.m_data.reset();
}
@@ -193,8 +193,8 @@ public:
this->~BasicSmallString();
m_data = other.m_data;
other.m_data = Internal::StringDataLayout<Size>();
m_data = std::move(other.m_data);
other.m_data.reset();
return *this;
}