Commit 5dc8e9a7 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Tim Jenssen

Fixing the compile

* noexcept at wrong postition
* alignment cannot be guaranteed when copying the argument

Change-Id: Ib68788a3fb781e913bd347e6b7932d3280ba9e67
Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
parent 78fb7f44
......@@ -46,7 +46,7 @@ struct SmallStringIterator : public std::iterator<Category, Type, DistanceType,
{
SmallStringIterator() noexcept = default;
SmallStringIterator(Pointer ptr) : pointer_(ptr) noexcept
SmallStringIterator(Pointer ptr) noexcept : pointer_(ptr)
{
}
......
......@@ -118,7 +118,7 @@ public:
}
private:
BasicSmallStringLiteral(Internal::StringDataLayout<Size> data) noexcept
BasicSmallStringLiteral(const Internal::StringDataLayout<Size> &data) noexcept
: m_data(data)
{
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment