forked from qt-creator/qt-creator
Clang: Improve file path cache
Change-Id: I940dc63c0fc95fbb826ed7d19a1ac1e4db5a542c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user