summaryrefslogtreecommitdiffstats
path: root/src/qtmultimediaquicktools/qsgvideonode_texture.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-02-14 12:07:00 +0100
committerLars Knoll <lars.knoll@qt.io>2021-03-02 14:49:49 +0000
commit3c59d3c008665c7075ad6fb3e7f89a295518036d (patch)
tree9b150ac0548dbc4729c6587934bc7287038ae9b0 /src/qtmultimediaquicktools/qsgvideonode_texture.cpp
parent2e84ea2c3b13d51bb03c0d386daaea23e9e40226 (diff)
Modernize code base
Use clang-modernize to modernize the code base * Use = default where applicable * Use nullptr Change-Id: I88b307e76b7f7dde090354ff4b292cea76f5c60c Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qtmultimediaquicktools/qsgvideonode_texture.cpp')
-rw-r--r--src/qtmultimediaquicktools/qsgvideonode_texture.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/qtmultimediaquicktools/qsgvideonode_texture.cpp b/src/qtmultimediaquicktools/qsgvideonode_texture.cpp
index 1b09eed98..45469125b 100644
--- a/src/qtmultimediaquicktools/qsgvideonode_texture.cpp
+++ b/src/qtmultimediaquicktools/qsgvideonode_texture.cpp
@@ -119,9 +119,7 @@ public:
m_texture.reset(new QSGVideoTexture);
}
- ~QSGVideoMaterial_Texture() override
- {
- }
+ ~QSGVideoMaterial_Texture() override = default;
[[nodiscard]] QSGMaterialType *type() const override {
static QSGMaterialType normalType, swizzleType;
@@ -216,9 +214,7 @@ QSGVideoNode_Texture::QSGVideoNode_Texture(const QVideoSurfaceFormat &format) :
setMaterial(m_material);
}
-QSGVideoNode_Texture::~QSGVideoNode_Texture()
-{
-}
+QSGVideoNode_Texture::~QSGVideoNode_Texture() = default;
void QSGVideoNode_Texture::setCurrentFrame(const QVideoFrame &frame, FrameFlags)
{