diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-03-14 13:26:37 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-17 17:23:49 +0000 |
commit | 9c56a83b7600aef977d7cdec567b1b7a0d134ab2 (patch) | |
tree | 79a678b743d1ac227846436d60fd895d8e6fcf04 /Userland/Libraries/LibGfx/JPGLoader.cpp | |
parent | c37820b898cdb9689debd28f9c66c70a16d3c663 (diff) | |
download | serenity-9c56a83b7600aef977d7cdec567b1b7a0d134ab2.zip |
Libraries: Use default constructors/destructors in LibGfx
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/LibGfx/JPGLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/JPGLoader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGfx/JPGLoader.cpp b/Userland/Libraries/LibGfx/JPGLoader.cpp index 6c31590c47..2ff7f82aee 100644 --- a/Userland/Libraries/LibGfx/JPGLoader.cpp +++ b/Userland/Libraries/LibGfx/JPGLoader.cpp @@ -1232,9 +1232,7 @@ JPGImageDecoderPlugin::JPGImageDecoderPlugin(const u8* data, size_t size) m_context->huffman_stream.stream.ensure_capacity(50 * KiB); } -JPGImageDecoderPlugin::~JPGImageDecoderPlugin() -{ -} +JPGImageDecoderPlugin::~JPGImageDecoderPlugin() = default; IntSize JPGImageDecoderPlugin::size() { |