summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basegfx/source/tools/keystoplerp.cxx4
-rw-r--r--include/basegfx/utils/keystoplerp.hxx2
-rw-r--r--slideshow/source/engine/activities/continuouskeytimeactivitybase.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/source/tools/keystoplerp.cxx b/basegfx/source/tools/keystoplerp.cxx
index 0610dd19c228..e5d0d76304e2 100644
--- a/basegfx/source/tools/keystoplerp.cxx
+++ b/basegfx/source/tools/keystoplerp.cxx
@@ -42,8 +42,8 @@ static void validateInput(const std::vector<double>& rKeyStops)
namespace basegfx::utils
{
- KeyStopLerp::KeyStopLerp( const std::vector<double>& rKeyStops ) :
- maKeyStops(rKeyStops),
+ KeyStopLerp::KeyStopLerp( std::vector<double>&& rKeyStops ) :
+ maKeyStops(std::move(rKeyStops)),
mnLastIndex(0)
{
validateInput(maKeyStops);
diff --git a/include/basegfx/utils/keystoplerp.hxx b/include/basegfx/utils/keystoplerp.hxx
index 302020ac337e..f8a821e7a58f 100644
--- a/include/basegfx/utils/keystoplerp.hxx
+++ b/include/basegfx/utils/keystoplerp.hxx
@@ -53,7 +53,7 @@ namespace basegfx::utils
need key stop lerping in the first place). All
elements must be of monotonically increasing value.
*/
- explicit KeyStopLerp( const std::vector<double>& rKeyStops );
+ explicit KeyStopLerp( std::vector<double>&& rKeyStops );
/** Create lerper with given sequence of stops
diff --git a/slideshow/source/engine/activities/continuouskeytimeactivitybase.cxx b/slideshow/source/engine/activities/continuouskeytimeactivitybase.cxx
index 38d3590da3b6..db25d2dd4333 100644
--- a/slideshow/source/engine/activities/continuouskeytimeactivitybase.cxx
+++ b/slideshow/source/engine/activities/continuouskeytimeactivitybase.cxx
@@ -28,7 +28,7 @@ namespace slideshow::internal
{
ContinuousKeyTimeActivityBase::ContinuousKeyTimeActivityBase( const ActivityParameters& rParms ) :
SimpleContinuousActivityBase( rParms ),
- maLerper( rParms.maDiscreteTimes )
+ maLerper( std::vector(rParms.maDiscreteTimes) )
{
ENSURE_OR_THROW( rParms.maDiscreteTimes.size() > 1,
"ContinuousKeyTimeActivityBase::ContinuousKeyTimeActivityBase(): key times vector must have two entries or more" );