aboutsummaryrefslogtreecommitdiff
path: root/src/particles.h
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-07-30 12:51:23 +0100
committerGitHub <noreply@github.com>2022-07-30 12:51:23 +0100
commita8711158896d993e23d823f41ab086c3915c7d4e (patch)
tree4883ab0310ec344883b8042dea3195cd73717c2e /src/particles.h
parent6a269d58ef28be6428a5fb62c0eb966fc1ff5883 (diff)
downloadminetest-a8711158896d993e23d823f41ab086c3915c7d4e.tar.gz
minetest-a8711158896d993e23d823f41ab086c3915c7d4e.tar.bz2
minetest-a8711158896d993e23d823f41ab086c3915c7d4e.zip
Fix some warnings (#12615)
Diffstat (limited to 'src/particles.h')
-rw-r--r--src/particles.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/particles.h b/src/particles.h
index 622fee099..74bfa7fce 100644
--- a/src/particles.h
+++ b/src/particles.h
@@ -95,7 +95,7 @@ namespace ParticleParamTypes
using This = Parameter<T, PN>;
Parameter() = default;
- Parameter(const This& a) = default;
+
template <typename... Args>
Parameter(Args... args) : val(args...) {}
@@ -165,7 +165,6 @@ namespace ParticleParamTypes
f32 bias = 0;
RangedParameter() = default;
- RangedParameter(const This& a) = default;
RangedParameter(T _min, T _max) : min(_min), max(_max) {}
template <typename M> RangedParameter(M b) : min(b), max(b) {}
@@ -245,7 +244,6 @@ namespace ParticleParamTypes
T start, end;
TweenedParameter() = default;
- TweenedParameter(const This& a) = default;
TweenedParameter(T _start, T _end) : start(_start), end(_end) {}
template <typename M> TweenedParameter(M b) : start(b), end(b) {}