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:
parent
8c889bf110
commit
654cd10755
@ -114,7 +114,7 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
inline QVector() noexcept { }
|
||||
constexpr inline QVector() noexcept { }
|
||||
explicit QVector(int size)
|
||||
: d(Data::allocate(size))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user