summaryrefslogtreecommitdiff
path: root/svx/source/accessibility/svxrectctaccessiblecontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/accessibility/svxrectctaccessiblecontext.cxx')
-rw-r--r--svx/source/accessibility/svxrectctaccessiblecontext.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/svx/source/accessibility/svxrectctaccessiblecontext.cxx b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
index 2f474038dacc..0b091932c1d1 100644
--- a/svx/source/accessibility/svxrectctaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxrectctaccessiblecontext.cxx
@@ -660,7 +660,7 @@ SvxRectCtlChildAccessibleContext::SvxRectCtlChildAccessibleContext(
msDescription( rDescription ),
msName( rName ),
mxParent(rxParent),
- mpBoundingBox( new tools::Rectangle( rBoundingBox ) ),
+ maBoundingBox( rBoundingBox ),
mrParentWindow( rParentWindow ),
mnClientId( 0 ),
mnIndexInParent( nIndexInParent ),
@@ -986,8 +986,6 @@ void SAL_CALL SvxRectCtlChildAccessibleContext::disposing()
}
mxParent.clear();
-
- delete mpBoundingBox;
}
}
@@ -1009,10 +1007,10 @@ tools::Rectangle SvxRectCtlChildAccessibleContext::GetBoundingBoxOnScreen()
tools::Rectangle const & SvxRectCtlChildAccessibleContext::GetBoundingBox()
{
- // no guard necessary, because no one changes mpBoundingBox after creating it
+ // no guard necessary, because no one changes maBoundingBox after creating it
ThrowExceptionIfNotAlive();
- return *mpBoundingBox;
+ return maBoundingBox;
}
void SvxRectCtlChildAccessibleContext::setStateChecked( bool bChecked )