summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-11-29 10:22:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-11-29 10:22:33 +0100
commit361c6eb18c9ba4043652ba91036094379aeaf05f (patch)
treed1e610a5cb59c0d7a2f467b4d7b9675cc7b658e9 /sd
parent603bca03c1b546d627fa7c6fe33021690ce374c5 (diff)
Use Size::Width/Height instead of inherited Pair::A/B
Change-Id: Ie0346d5ec054fbe7eff1d4b73814a5e2b9f654c2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-text.cxx4
-rw-r--r--sd/source/ui/view/sdview3.cxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index 2134e355aaaa..a0e09ed8b55d 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -849,8 +849,8 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider* pBuProv, sal_Int1
if (auto aSize = o3tl::tryAccess<css::awt::Size>(pPropValue[i].Value))
{
// don't cast awt::Size to Size as on 64-bits they are not the same.
- aBuGraSize.A() = aSize->Width;
- aBuGraSize.B() = aSize->Height;
+ aBuGraSize.Width() = aSize->Width;
+ aBuGraSize.Height() = aSize->Height;
}
}
else if ( aPropName == "StartWith" )
diff --git a/sd/source/ui/view/sdview3.cxx b/sd/source/ui/view/sdview3.cxx
index 6490032b32c9..c095f87f28f8 100644
--- a/sd/source/ui/view/sdview3.cxx
+++ b/sd/source/ui/view/sdview3.cxx
@@ -543,8 +543,8 @@ bool View::InsertData( const TransferableDataHelper& rDataHelper,
{
const SdrGluePoint& rGluePoint = (*pGlueList)[nInd];
Point aPosition = rGluePoint.GetAbsolutePos(*pConnObj);
- aPosition.X() += aVector.A();
- aPosition.Y() += aVector.B();
+ aPosition.X() += aVector.Width();
+ aPosition.Y() += aVector.Height();
pCloneEdge->SetTailPoint(false, aPosition);
}
}
@@ -575,8 +575,8 @@ bool View::InsertData( const TransferableDataHelper& rDataHelper,
{
const SdrGluePoint& rGluePoint = (*pGlueList)[nInd];
Point aPosition = rGluePoint.GetAbsolutePos(*pConnObj);
- aPosition.X() += aVector.A();
- aPosition.Y() += aVector.B();
+ aPosition.X() += aVector.Width();
+ aPosition.Y() += aVector.Height();
pCloneEdge->SetTailPoint(true, aPosition);
}
}