From 4660b99ab72f7546d62f1c486a2feb5ade0489f0 Mon Sep 17 00:00:00 2001 From: Lenny Maiorani Date: Sat, 26 Feb 2022 10:36:34 -0700 Subject: [PATCH] Libraries: Use default constructors/destructors in LibGL 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/LibGL/Tex/Texture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGL/Tex/Texture.h b/Userland/Libraries/LibGL/Tex/Texture.h index 89dfe00196..1009d15028 100644 --- a/Userland/Libraries/LibGL/Tex/Texture.h +++ b/Userland/Libraries/LibGL/Tex/Texture.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Stephan Unverwerth + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -13,7 +14,7 @@ namespace GL { class Texture : public RefCounted { public: - virtual ~Texture() { } + virtual ~Texture() = default; virtual bool is_texture_1d() const { return false; } virtual bool is_texture_2d() const { return false; }