forked from qt-creator/qt-creator
Utils: Remove noexcept from SmallString::append
We want to get bad_alloc. ;-) Change-Id: Icc7995405bfb96d3f709b80e30b13c5d81fb3979 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -449,7 +449,7 @@ public:
|
|||||||
return SmallStringView(data() + position, length);
|
return SmallStringView(data() + position, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
void append(SmallStringView string) noexcept
|
void append(SmallStringView string)
|
||||||
{
|
{
|
||||||
size_type oldSize = size();
|
size_type oldSize = size();
|
||||||
size_type newSize = oldSize + string.size();
|
size_type newSize = oldSize + string.size();
|
||||||
|
Reference in New Issue
Block a user