Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-06-29 16:56:25 +0300
committerJacques Lucke <mail@jlucke.com>2019-06-29 16:56:25 +0300
commitee16f26610134e42d5be089e385641cd9807e4dd (patch)
treee9a919ff911f90afc7a4b3be825eb79c8d5d72a4 /source/blender/simulations/bparticles/forces.cpp
parentc2e13a2f94c377c7e96ac296bdc6bab9e4703d55 (diff)
remove unnecessary use of smart pointers
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r--source/blender/simulations/bparticles/forces.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp
index 81d86a39592..9cc7fc427cb 100644
--- a/source/blender/simulations/bparticles/forces.cpp
+++ b/source/blender/simulations/bparticles/forces.cpp
@@ -42,14 +42,14 @@ class TurbulenceForce : public BParticles::Force {
}
};
-std::unique_ptr<Force> FORCE_directional(float3 force)
+Force *FORCE_directional(float3 force)
{
- return std::unique_ptr<Force>(new DirectionalForce(force));
+ return new DirectionalForce(force);
}
-std::unique_ptr<Force> FORCE_turbulence(float strength)
+Force *FORCE_turbulence(float strength)
{
- return std::unique_ptr<Force>(new TurbulenceForce(strength));
+ return new TurbulenceForce(strength);
}
} // namespace BParticles