diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-06-24 20:36:04 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-08-07 02:05:46 +0200 |
commit | 9edfb7a1b5f8c9e8e6ddaa08637ce710e7917b77 (patch) | |
tree | 5a5fc023d85871987fb408d3113ab188fa1668d1 /src/corelib/tools | |
parent | 7d7e62967fb7b9b689f4a688be71722f80a6bdda (diff) |
QMap/QMultiMap: use =default for their default constructors
Change-Id: I48e5bd8367fc6040128a50cd08c803310d3a4507
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qmap.h b/src/corelib/tools/qmap.h index 67412e88ca..afc4ca37c4 100644 --- a/src/corelib/tools/qmap.h +++ b/src/corelib/tools/qmap.h @@ -226,7 +226,7 @@ public: using difference_type = qptrdiff; using size_type = qsizetype; - constexpr QMap() noexcept {} + QMap() = default; // implicitly generated special member functions are OK! @@ -763,7 +763,7 @@ public: using difference_type = qptrdiff; using size_type = qsizetype; - constexpr QMultiMap() noexcept {} + QMultiMap() = default; // implicitly generated special member functions are OK! |