diff options
Diffstat (limited to 'source/blender/freestyle/intern/stroke')
5 files changed, 2 insertions, 18 deletions
diff --git a/source/blender/freestyle/intern/stroke/Curve.h b/source/blender/freestyle/intern/stroke/Curve.h index 91470b57ca2..f0db45150a9 100644 --- a/source/blender/freestyle/intern/stroke/Curve.h +++ b/source/blender/freestyle/intern/stroke/Curve.h @@ -236,9 +236,7 @@ class CurvePoint : public Interface0D { CurvePoint &operator=(const CurvePoint &iBrother); /*! Destructor */ - virtual ~CurvePoint() - { - } + virtual ~CurvePoint() = default; /*! Operator == */ bool operator==(const CurvePoint &b) diff --git a/source/blender/freestyle/intern/stroke/Stroke.cpp b/source/blender/freestyle/intern/stroke/Stroke.cpp index 79eb37ae870..0de3e03d44a 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.cpp +++ b/source/blender/freestyle/intern/stroke/Stroke.cpp @@ -383,10 +383,6 @@ StrokeVertex::StrokeVertex(SVertex *iSVertex, const StrokeAttribute &iAttribute) _StrokeLength = 0.0f; } -StrokeVertex::~StrokeVertex() -{ -} - StrokeVertex &StrokeVertex::operator=(const StrokeVertex &iBrother) { ((CurvePoint *)this)->operator=(iBrother); diff --git a/source/blender/freestyle/intern/stroke/Stroke.h b/source/blender/freestyle/intern/stroke/Stroke.h index 5772b80b093..4a9ed7288c5 100644 --- a/source/blender/freestyle/intern/stroke/Stroke.h +++ b/source/blender/freestyle/intern/stroke/Stroke.h @@ -355,9 +355,6 @@ class StrokeVertex : public CurvePoint { /*! Builds a stroke from a view vertex and an attribute */ StrokeVertex(SVertex *iSVertex, const StrokeAttribute &iAttribute); - /*! destructor */ - virtual ~StrokeVertex(); - /* operators */ /*! operator = */ StrokeVertex &operator=(const StrokeVertex &iBrother); diff --git a/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp b/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp index a4268e43a56..797fcc1aabc 100644 --- a/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp +++ b/source/blender/freestyle/intern/stroke/StrokeRenderer.cpp @@ -37,13 +37,7 @@ namespace Freestyle { TextureManager *StrokeRenderer::_textureManager = nullptr; -StrokeRenderer::StrokeRenderer() -{ -} - -StrokeRenderer::~StrokeRenderer() -{ -} +StrokeRenderer::~StrokeRenderer() = default; bool StrokeRenderer::loadTextures() { diff --git a/source/blender/freestyle/intern/stroke/StrokeRenderer.h b/source/blender/freestyle/intern/stroke/StrokeRenderer.h index 2fb08b880d9..d3ed8bde8a3 100644 --- a/source/blender/freestyle/intern/stroke/StrokeRenderer.h +++ b/source/blender/freestyle/intern/stroke/StrokeRenderer.h @@ -121,7 +121,6 @@ class TextureManager { * first rendering */ class StrokeRenderer { public: - StrokeRenderer(); virtual ~StrokeRenderer(); /*! Renders a stroke rep */ |