diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-03-04 13:27:47 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-13 22:34:38 +0100 |
commit | 8b334248e474d939ea8bf00fa9c57f9eabcd3bd4 (patch) | |
tree | 0679a2dc95ffbbe9d05d0ac33163f8f98800709c /Userland/Libraries/LibVT/Range.h | |
parent | a53c00f1df5e6e8eafd9ea32d51f5a7fa0aa3f1c (diff) | |
download | serenity-8b334248e474d939ea8bf00fa9c57f9eabcd3bd4.zip |
Libraries: Use default constructors/destructors in LibVT
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/LibVT/Range.h')
-rw-r--r-- | Userland/Libraries/LibVT/Range.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibVT/Range.h b/Userland/Libraries/LibVT/Range.h index dcb51cb85f..db3cb9015c 100644 --- a/Userland/Libraries/LibVT/Range.h +++ b/Userland/Libraries/LibVT/Range.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, the SerenityOS developers. + * Copyright (c) 2020-2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -12,7 +12,7 @@ namespace VT { class Range { public: - Range() { } + Range() = default; Range(const VT::Position& start, const VT::Position& end) : m_start(start) , m_end(end) |