forked from qt-creator/qt-creator
Utils: Fix small string
Change-Id: I6a746eb28c6c803b9ade9f626a950cf93ba6fe99 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -615,7 +615,13 @@ public:
|
||||
|
||||
friend BasicSmallString operator+(SmallStringView first, const BasicSmallString &second)
|
||||
{
|
||||
return operator+(second, first);
|
||||
BasicSmallString text;
|
||||
text.reserve(first.size() + second.size());
|
||||
|
||||
text.append(first);
|
||||
text.append(second);
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
template<size_type ArraySize>
|
||||
|
||||
Reference in New Issue
Block a user