From 21e0d8162a0e683558c4d042ce688fc9a6833809 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 3 Jan 2018 14:08:19 +0200 Subject: loplugin:unusedfields fix the ReturnStmt check Change-Id: I95076076bd1313d23798c4615ea12910c86ed9a8 Reviewed-on: https://gerrit.libreoffice.org/47309 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/controls/accessiblecontrolcontext.cxx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'toolkit/source/controls/accessiblecontrolcontext.cxx') diff --git a/toolkit/source/controls/accessiblecontrolcontext.cxx b/toolkit/source/controls/accessiblecontrolcontext.cxx index cde540b577d9..a2685eae8d07 100644 --- a/toolkit/source/controls/accessiblecontrolcontext.cxx +++ b/toolkit/source/controls/accessiblecontrolcontext.cxx @@ -133,11 +133,7 @@ namespace toolkit Reference< XAccessible > SAL_CALL OAccessibleControlContext::getAccessibleParent( ) { - OContextEntryGuard aGuard( this ); - OSL_ENSURE( implGetForeignControlledParent().is(), "OAccessibleControlContext::getAccessibleParent: somebody forgot to set a parent!" ); - // this parent of us is foreign controlled - somebody has to set it using the OAccessibleImplementationAccess - // class, before integrating our instance into an AccessibleDocumentModel - return implGetForeignControlledParent(); + return Reference< XAccessible >(); } @@ -275,21 +271,12 @@ namespace toolkit if ( pVCLParent ) aVCLParentScreenPos = pVCLParent->GetPosPixel(); - // the screen position of the "accessible parent" of the control - Reference< XAccessible > xParentAcc( implGetForeignControlledParent() ); - Reference< XAccessibleComponent > xParentAccComponent; - if ( xParentAcc.is() ) - xParentAccComponent.set(xParentAcc->getAccessibleContext(), css::uno::UNO_QUERY); - awt::Point aAccParentScreenPos( 0, 0 ); - if ( xParentAccComponent.is() ) - aAccParentScreenPos = xParentAccComponent->getLocationOnScreen(); - // now the size of the control aBounds = xWindow->getPosSize(); // correct the pos - aBounds.X = aWindowRelativePos.X() + aVCLParentScreenPos.X() - aAccParentScreenPos.X; - aBounds.Y = aWindowRelativePos.Y() + aVCLParentScreenPos.Y() - aAccParentScreenPos.Y; + aBounds.X = aWindowRelativePos.X() + aVCLParentScreenPos.X(); + aBounds.Y = aWindowRelativePos.Y() + aVCLParentScreenPos.Y(); } return aBounds; -- cgit