Make QVector's default ctor constexpr

Because then other objects can be made constexpr

Change-Id: I083d4e664549cf48db1c8f89a873c48b9c558b60
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Mårten Nordheim 2020-05-05 18:17:36 +02:00
parent 8c889bf110
commit 654cd10755

View File

@ -114,7 +114,7 @@ public:
}
public:
inline QVector() noexcept { }
constexpr inline QVector() noexcept { }
explicit QVector(int size)
: d(Data::allocate(size))
{