From 2200eb761d169964dec0ea9495f689f83fde0539 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Fri, 25 Feb 2022 13:28:58 -0700 Subject: [PATCH] Libraries: Use default constructors/destructors in LibAudio 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." --- Userland/Libraries/LibAudio/Loader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibAudio/Loader.h b/Userland/Libraries/LibAudio/Loader.h index f2ee6e8dca1..698f092db61 100644 --- a/Userland/Libraries/LibAudio/Loader.h +++ b/Userland/Libraries/LibAudio/Loader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, the SerenityOS developers. + * Copyright (c) 2018-2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -28,7 +28,7 @@ using MaybeLoaderError = Result; class LoaderPlugin { public: - virtual ~LoaderPlugin() { } + virtual ~LoaderPlugin() = default; virtual MaybeLoaderError initialize() = 0;