summaryrefslogtreecommitdiffstats
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index b6536f0397e1..58fdfa68d696 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -2193,9 +2193,7 @@ awt::Point SAL_CALL SwXShape::getPosition()
{
// #i34750# - get attribute position of top group
// shape and add offset between top group object and group member
- uno::Reference< drawing::XShape > xGroupShape =
- uno::Reference< drawing::XShape >( pTopGroupObj->getUnoShape(),
- uno::UNO_QUERY );
+ uno::Reference< drawing::XShape > xGroupShape( pTopGroupObj->getUnoShape(), uno::UNO_QUERY );
aPos = xGroupShape->getPosition();
// add offset between top group object and group member
// to the determined attribute position
@@ -2275,9 +2273,7 @@ void SAL_CALL SwXShape::setPosition( const awt::Point& aPosition )
}
// Convert given absolute position in horizontal left-to-right
// layout into relative position in horizontal left-to-right layout.
- uno::Reference< drawing::XShape > xGroupShape =
- uno::Reference< drawing::XShape >( pTopGroupObj->getUnoShape(),
- uno::UNO_QUERY );
+ uno::Reference< drawing::XShape > xGroupShape( pTopGroupObj->getUnoShape(), uno::UNO_QUERY );
{
// #i34750#
// use method <xGroupShape->getPosition()> to get the correct