diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-03-03 11:37:49 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-13 22:34:38 +0100 |
commit | dcdc62323dc0d17f5b6959bfeb78645e0e35840c (patch) | |
tree | bbfee9adf36bde87b7ae68f63c8b91746910f5df /Userland/Libraries/LibIPC/Dictionary.h | |
parent | 79aa49d04f7797cd26473ce2b71cfedc25c47dd6 (diff) | |
download | serenity-dcdc62323dc0d17f5b6959bfeb78645e0e35840c.zip |
Libraries: Use default constructors/destructors in LibIPC
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
Diffstat (limited to 'Userland/Libraries/LibIPC/Dictionary.h')
-rw-r--r-- | Userland/Libraries/LibIPC/Dictionary.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibIPC/Dictionary.h b/Userland/Libraries/LibIPC/Dictionary.h index d9df9dab21..97a5eed718 100644 --- a/Userland/Libraries/LibIPC/Dictionary.h +++ b/Userland/Libraries/LibIPC/Dictionary.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -13,7 +14,7 @@ namespace IPC { class Dictionary { public: - Dictionary() { } + Dictionary() = default; Dictionary(const HashMap<String, String>& initial_entries) : m_entries(initial_entries) |