summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/animations')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx6
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx3
-rw-r--r--sd/source/ui/animations/motionpathtag.cxx4
3 files changed, 5 insertions, 8 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index a1cb53c31431..1d70cb38f7ff 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -618,10 +618,8 @@ void CustomAnimationList::update()
auto rInteractiveSequenceVector = mpMainSequence->getInteractiveSequenceVector();
- for (auto const& interactiveSequence : rInteractiveSequenceVector)
+ for (InteractiveSequencePtr const& pIS : rInteractiveSequenceVector)
{
- InteractiveSequencePtr pIS( interactiveSequence );
-
Reference< XShape > xShape( pIS->getTriggerShape() );
if( xShape.is() )
{
@@ -857,7 +855,7 @@ EffectSequence CustomAnimationList::getSelection() const
{
if( !IsSelected( pChild ) )
{
- CustomAnimationEffectPtr pChildEffect( pChild->getEffect() );
+ const CustomAnimationEffectPtr& pChildEffect( pChild->getEffect() );
if( pChildEffect.get() )
aSelection.push_back( pChildEffect );
}
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 8b3f3c76acaf..0047558b2dfc 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -827,9 +827,8 @@ void CustomAnimationPane::updateMotionPathTags()
bChanges = updateMotionPathImpl( *this, *pView, mpMainSequence->getBegin(), mpMainSequence->getEnd(), aTags, maMotionPathTags );
auto rInteractiveSequenceVector = mpMainSequence->getInteractiveSequenceVector();
- for (auto const& interactiveSequence : rInteractiveSequenceVector)
+ for (InteractiveSequencePtr const& pIS : rInteractiveSequenceVector)
{
- InteractiveSequencePtr pIS(interactiveSequence);
bChanges |= updateMotionPathImpl( *this, *pView, pIS->getBegin(), pIS->getEnd(), aTags, maMotionPathTags );
}
}
diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx
index 10ef7cfab409..aa9bfe2e3dae 100644
--- a/sd/source/ui/animations/motionpathtag.cxx
+++ b/sd/source/ui/animations/motionpathtag.cxx
@@ -283,11 +283,11 @@ void SdPathHdl::CreateB2dIAObject()
if(rPageWindow.GetPaintWindow().OutputToWindow())
{
- rtl::Reference< sdr::overlay::OverlayManager > xManager = rPageWindow.GetOverlayManager();
+ const rtl::Reference< sdr::overlay::OverlayManager >& xManager = rPageWindow.GetOverlayManager();
if (xManager.is() && mpPathObj)
{
const sdr::contact::ViewContact& rVC = mpPathObj->GetViewContact();
- const drawinglayer::primitive2d::Primitive2DContainer aSequence = rVC.getViewIndependentPrimitive2DContainer();
+ const drawinglayer::primitive2d::Primitive2DContainer& aSequence = rVC.getViewIndependentPrimitive2DContainer();
std::unique_ptr<sdr::overlay::OverlayObject> pNew(new sdr::overlay::OverlayPrimitive2DSequenceObject(aSequence));
xManager->add(*pNew);