diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-05 18:17:36 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-05-06 11:28:27 +0200 |
commit | 654cd10755a7c9e2fe865a76e237eb6f46e778b8 (patch) | |
tree | 6b4b08c0bc2be41b7061203b9a28f27b7aa0bcf8 /src/corelib/tools/qvector.h | |
parent | 8c889bf1104ed1dad95a01d2b1ae1e6950fe82ed (diff) |
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>
Diffstat (limited to 'src/corelib/tools/qvector.h')
-rw-r--r-- | src/corelib/tools/qvector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qvector.h b/src/corelib/tools/qvector.h index 88c942ca15..c2cdcba41d 100644 --- a/src/corelib/tools/qvector.h +++ b/src/corelib/tools/qvector.h @@ -114,7 +114,7 @@ public: } public: - inline QVector() noexcept { } + constexpr inline QVector() noexcept { } explicit QVector(int size) : d(Data::allocate(size)) { |