summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/control
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-13 15:24:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 07:27:38 +0100
commita9ca38bdf7ff9d15529b5903e640987fc14c0fa7 (patch)
treeb8b22298011bdfea9575dc8c761203d5cb54bdf1 /dbaccess/source/ui/control
parentc8e19544cdc506dfc91dbd8045da208ded7d7d2c (diff)
loplugin:changetoolsgen in dbaccess..desktop
Change-Id: I713a320e46f93dedd11266ac12e52110d13f451a Reviewed-on: https://gerrit.libreoffice.org/49655 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/control')
-rw-r--r--dbaccess/source/ui/control/FieldDescControl.cxx16
-rw-r--r--dbaccess/source/ui/control/VertSplitView.cxx8
2 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index 15db79ca2fa2..4870cd10ce7d 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -415,7 +415,7 @@ sal_Int32 OFieldDescControl::GetMaxControlHeight() const
{
const Size aTemp(pAggregate->GetOptimalSize());
if ( aTemp.Height() > aHeight.Height() )
- aHeight.Height() = aTemp.Height();
+ aHeight.setHeight( aTemp.Height() );
}
}
@@ -996,7 +996,7 @@ void OFieldDescControl::SetPosSize( VclPtr<Control> const & rControl, long nRow,
const sal_Int32 nControlHeight = GetMaxControlHeight();
Size aSize(0,nControlHeight);
if ( isRightAligned() && nCol )
- aSize.Width() = LogicToPixel(Size(m_nWidth, 0), MapMode(MapUnit::MapAppFont)).Width();
+ aSize.setWidth( LogicToPixel(Size(m_nWidth, 0), MapMode(MapUnit::MapAppFont)).Width() );
else
{
switch( nCol )
@@ -1022,8 +1022,8 @@ void OFieldDescControl::SetPosSize( VclPtr<Control> const & rControl, long nRow,
switch( nCol )
{
case 0:
- aPosition.X() = 0;
- aPosition.Y() = 1;
+ aPosition.setX( 0 );
+ aPosition.setY( 1 );
break;
case 1:
case 3:
@@ -1031,21 +1031,21 @@ void OFieldDescControl::SetPosSize( VclPtr<Control> const & rControl, long nRow,
if ( isRightAligned() )
{
Size aOwnSize = GetSizePixel();
- aPosition.X() = aOwnSize.Width() - aSize.Width();
+ aPosition.setX( aOwnSize.Width() - aSize.Width() );
}
else
aPosition.X() = CONTROL_WIDTH_1 + CONTROL_SPACING_X;
break;
default:
- aPosition.X() = 0;
+ aPosition.setX( 0 );
}
rControl->SetSizePixel( aSize );
aSize = rControl->GetSizePixel( );
const sal_Int32 nControl_Spacing_y = LogicToPixel(Size(0, CONTROL_SPACING_Y), MapMode(MapUnit::MapAppFont)).Height();
- aPosition.Y() += ((nRow+1)*nControl_Spacing_y) +
- (nRow*nControlHeight);
+ aPosition.setY( aPosition.Y() + ((nRow+1)*nControl_Spacing_y) +
+ (nRow*nControlHeight) );
// Display Control
rControl->SetPosSizePixel( aPosition, aSize );
diff --git a/dbaccess/source/ui/control/VertSplitView.cxx b/dbaccess/source/ui/control/VertSplitView.cxx
index b12b1c9be94f..b24b34c9c538 100644
--- a/dbaccess/source/ui/control/VertSplitView.cxx
+++ b/dbaccess/source/ui/control/VertSplitView.cxx
@@ -115,14 +115,14 @@ void OSplitterView::Resize()
{
aSplitPos = m_pSplitter->GetPosPixel();
aSplitSize = m_pSplitter->GetOutputSizePixel();
- aSplitPos.X() = aPlaygroundPos.X();
- aSplitSize.Width() = aPlaygroundSize.Width();
+ aSplitPos.setX( aPlaygroundPos.X() );
+ aSplitSize.setWidth( aPlaygroundSize.Width() );
if( ( aSplitPos.Y() + aSplitSize.Height() ) > ( aPlaygroundSize.Height() ))
- aSplitPos.Y() = aPlaygroundSize.Height() - aSplitSize.Height();
+ aSplitPos.setY( aPlaygroundSize.Height() - aSplitSize.Height() );
if( aSplitPos.Y() <= aPlaygroundPos.Y() )
- aSplitPos.Y() = aPlaygroundPos.Y() + sal_Int32(aPlaygroundSize.Height() * 0.3);
+ aSplitPos.setY( aPlaygroundPos.Y() + sal_Int32(aPlaygroundSize.Height() * 0.3) );
// the tree pos and size
Point aTreeViewPos( aPlaygroundPos );