summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/unosrch.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/unoidl/unosrch.cxx')
-rw-r--r--sd/source/ui/unoidl/unosrch.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index f51b7481be6c..98f966079017 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -88,8 +88,7 @@ public:
*/
SdUnoSearchReplaceShape::SdUnoSearchReplaceShape( drawing::XDrawPage* pPage ) throw()
- : mpShape(nullptr)
- , mpPage(pPage)
+ : mpPage(pPage)
{
}
@@ -131,10 +130,6 @@ sal_Int32 SAL_CALL SdUnoSearchReplaceShape::replaceAll( const uno::Reference< ut
xShapes = nullptr;
}
}
- else
- {
- xShape = mpShape;
- }
while( xShape.is() )
{
@@ -231,10 +226,7 @@ uno::Reference< css::container::XIndexAccess > SAL_CALL SdUnoSearchReplaceShape:
xShapes = nullptr;
}
}
- else
- {
- xShape = mpShape;
- }
+
while( xShape.is() )
{
// find in xShape
@@ -330,10 +322,6 @@ uno::Reference< drawing::XShape > SdUnoSearchReplaceShape::GetCurrentShape() co
}
}
}
- else if( mpShape )
- {
- xShape = mpShape;
- }
return xShape;