diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 17:02:56 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | 004e50d84773242a000f5cadb89466bbc793e1a8 (patch) | |
| tree | 019c32e65caa08fe7cf90b521787531a7b1d2225 /src/display/nr-light.cpp | |
| parent | Run clang-tidy’s modernize-use-nullptr pass. (diff) | |
| download | inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.tar.gz inkscape-004e50d84773242a000f5cadb89466bbc793e1a8.zip | |
Run clang-tidy’s modernize-use-equals-default pass.
This replaces empty constructors and destructors with the default
keyword.
Diffstat (limited to 'src/display/nr-light.cpp')
| -rw-r--r-- | src/display/nr-light.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display/nr-light.cpp b/src/display/nr-light.cpp index 47938f00c..271e4f967 100644 --- a/src/display/nr-light.cpp +++ b/src/display/nr-light.cpp @@ -27,7 +27,7 @@ DistantLight::DistantLight(SPFeDistantLight *light, guint32 lighting_color) { elevation = M_PI / 180 * light->elevation; } -DistantLight::~DistantLight() {} +DistantLight::~DistantLight() = default; void DistantLight::light_vector(NR::Fvector &v) { v[X_3D] = std::cos(azimuth)*std::cos(elevation); @@ -49,7 +49,7 @@ PointLight::PointLight(SPFePointLight *light, guint32 lighting_color, const Geom NR::convert_coord(l_x, l_y, l_z, trans); } -PointLight::~PointLight() {} +PointLight::~PointLight() = default; void PointLight::light_vector(NR::Fvector &v, double x, double y, double z) { v[X_3D] = l_x - x; @@ -84,7 +84,7 @@ SpotLight::SpotLight(SPFeSpotLight *light, guint32 lighting_color, const Geom::A } -SpotLight::~SpotLight() {} +SpotLight::~SpotLight() = default; void SpotLight::light_vector(NR::Fvector &v, double x, double y, double z) { v[X_3D] = l_x - x; |
