mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
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."
This commit is contained in:
parent
271d82e23f
commit
4660b99ab7
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||||
|
* Copyright (c) 2022, the SerenityOS developers.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -13,7 +14,7 @@ namespace GL {
|
||||||
|
|
||||||
class Texture : public RefCounted<Texture> {
|
class Texture : public RefCounted<Texture> {
|
||||||
public:
|
public:
|
||||||
virtual ~Texture() { }
|
virtual ~Texture() = default;
|
||||||
|
|
||||||
virtual bool is_texture_1d() const { return false; }
|
virtual bool is_texture_1d() const { return false; }
|
||||||
virtual bool is_texture_2d() const { return false; }
|
virtual bool is_texture_2d() const { return false; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue