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.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx
index e23d2c26b5df..3afda2d5d646 100644
--- a/sd/source/ui/unoidl/unosrch.cxx
+++ b/sd/source/ui/unoidl/unosrch.cxx
@@ -550,7 +550,7 @@ uno::Reference< text::XTextRange > SdUnoSearchReplaceShape::Search( const uno::
if(pParent)
{
- SvxUnoTextRange *pRange = new SvxUnoTextRange( *pParent );
+ rtl::Reference<SvxUnoTextRange> pRange = new SvxUnoTextRange( *pParent );
xFound = pRange;
pRange->SetSelection(aSelection);
}