summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 09:22:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 11:38:00 +0100
commitbf8a6cacd06d7c1961b5db8cc79ee4bbdb342e43 (patch)
tree3dd81e82c06ce5da82295e614aa5bf9252db2445 /fpicker
parente2372907c991833a8bbe13f84460783d8d8fdfdb (diff)
loplugin:changetoolsgen in filter..framework
Change-Id: I622da8a0c096c74efd97326451c4576b230f0483 Reviewed-on: https://gerrit.libreoffice.org/49701 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/PlacesListBox.cxx2
-rw-r--r--fpicker/source/office/RemoteFilesDialog.cxx10
-rw-r--r--fpicker/source/office/iodlg.cxx10
3 files changed, 11 insertions, 11 deletions
diff --git a/fpicker/source/office/PlacesListBox.cxx b/fpicker/source/office/PlacesListBox.cxx
index 2c2bbcd4f82b..b4ea90e3bdd4 100644
--- a/fpicker/source/office/PlacesListBox.cxx
+++ b/fpicker/source/office/PlacesListBox.cxx
@@ -160,7 +160,7 @@ void PlacesListBox::SetSizePixel( const Size& rNewSize )
{
Control::SetSizePixel( rNewSize );
Size aListSize( rNewSize );
- aListSize.Height() -= 26 + 18;
+ aListSize.setHeight( aListSize.Height() - 26 + 18 );
mpImpl->SetSizePixel( aListSize );
sal_Int32 nBtnY = rNewSize.Height() - 26;
diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx
index 1306fe8c4271..971f409b563e 100644
--- a/fpicker/source/office/RemoteFilesDialog.cxx
+++ b/fpicker/source/office/RemoteFilesDialog.cxx
@@ -83,7 +83,7 @@ class FileViewContainer : public vcl::Window
// Resize the Splitter to fit the height
Size splitterNewSize = m_pSplitter->GetSizePixel();
- splitterNewSize.Height() = aSize.Height();
+ splitterNewSize.setHeight( aSize.Height() );
m_pSplitter->SetSizePixel( splitterNewSize );
sal_Int32 nMinX = m_pTreeView->GetPosPixel().X();
sal_Int32 nMaxX = m_pFileView->GetPosPixel().X() + m_pFileView->GetSizePixel().Width() - nMinX;
@@ -91,7 +91,7 @@ class FileViewContainer : public vcl::Window
// Resize the tree list box to fit the height of the FileView
Size placesNewSize( m_pTreeView->GetSizePixel() );
- placesNewSize.Height() = aSize.Height();
+ placesNewSize.setHeight( aSize.Height() );
m_pTreeView->SetSizePixel( placesNewSize );
}
@@ -1024,16 +1024,16 @@ IMPL_LINK_NOARG( RemoteFilesDialog, SplitHdl, Splitter*, void )
// Resize the tree list box
sal_Int32 nPlaceX = m_pTreeView->GetPosPixel().X();
Size placeSize = m_pTreeView->GetSizePixel();
- placeSize.Width() = nSplitPos - nPlaceX;
+ placeSize.setWidth( nSplitPos - nPlaceX );
m_pTreeView->SetSizePixel( placeSize );
// Change Pos and size of the fileview
Point fileViewPos = m_pFileView->GetPosPixel();
sal_Int32 nOldX = fileViewPos.X();
sal_Int32 nNewX = nSplitPos + m_pSplitter->GetSizePixel().Width();
- fileViewPos.X() = nNewX;
+ fileViewPos.setX( nNewX );
Size fileViewSize = m_pFileView->GetSizePixel();
- fileViewSize.Width() -= ( nNewX - nOldX );
+ fileViewSize.setWidth( fileViewSize.Width() - ( nNewX - nOldX ) );
m_pFileView->SetPosSizePixel( fileViewPos, fileViewSize );
m_pSplitter->SetPosPixel( Point( placeSize.Width(), m_pSplitter->GetPosPixel().Y() ) );
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index e5ffecdf0dd0..647879d9c5eb 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -391,7 +391,7 @@ public:
// Resize the Splitter to fit the height
Size splitterNewSize = _pSplitter->GetSizePixel( );
- splitterNewSize.Height() = aSize.Height();
+ splitterNewSize.setHeight( aSize.Height() );
_pSplitter->SetSizePixel( splitterNewSize );
sal_Int32 nMinX = pImpl->_pPlaces->GetPosPixel( ).X( );
sal_Int32 nMaxX = _pFileView->GetPosPixel( ).X( ) + _pFileView->GetSizePixel( ).Width() - nMinX;
@@ -399,7 +399,7 @@ public:
// Resize the places list box to fit the height of the FileView
Size placesNewSize(pImpl->_pPlaces->GetSizePixel());
- placesNewSize.Height() = aSize.Height();
+ placesNewSize.setHeight( aSize.Height() );
pImpl->_pPlaces->SetSizePixel( placesNewSize );
}
@@ -2746,16 +2746,16 @@ IMPL_LINK_NOARG( SvtFileDialog, Split_Hdl, Splitter*, void )
// Resize the places list
sal_Int32 nPlaceX = pImpl->_pPlaces->GetPosPixel( ).X();
Size placeSize = pImpl->_pPlaces->GetSizePixel( );
- placeSize.Width() = nSplitPos - nPlaceX;
+ placeSize.setWidth( nSplitPos - nPlaceX );
pImpl->_pPlaces->SetSizePixel( placeSize );
// Change Pos and size of the fileview
Point fileViewPos = _pFileView->GetPosPixel();
sal_Int32 nOldX = fileViewPos.X();
sal_Int32 nNewX = nSplitPos + _pSplitter->GetSizePixel().Width();
- fileViewPos.X() = nNewX;
+ fileViewPos.setX( nNewX );
Size fileViewSize = _pFileView->GetSizePixel();
- fileViewSize.Width() -= ( nNewX - nOldX );
+ fileViewSize.setWidth( fileViewSize.Width() - ( nNewX - nOldX ) );
_pFileView->SetPosSizePixel( fileViewPos, fileViewSize );
_pSplitter->SetPosPixel( Point( placeSize.Width(), _pSplitter->GetPosPixel().Y() ) );