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:
Marco Bubke
2018-03-29 18:34:24 +02:00
parent 28da1261c8
commit efd9b08eb4

View File

@@ -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();