summaryrefslogtreecommitdiff
path: root/desktop
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 /desktop
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 'desktop')
-rw-r--r--desktop/source/deployment/gui/dp_gui_extlistbox.cxx22
-rw-r--r--desktop/source/splash/splash.cxx2
2 files changed, 12 insertions, 12 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
index 1e2f7dc9d925..d439aa40308f 100644
--- a/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extlistbox.cxx
@@ -298,10 +298,10 @@ void ExtensionBox_Impl::CalcActiveHeight( const long nPos )
// calc description height
Size aSize = GetOutputSizePixel();
if ( m_bHasScrollBar )
- aSize.Width() -= m_pScrollBar->GetSizePixel().Width();
+ aSize.setWidth( aSize.Width() - m_pScrollBar->GetSizePixel().Width() );
aSize.Width() -= ICON_OFFSET;
- aSize.Height() = 10000;
+ aSize.setHeight( 10000 );
OUString aText( m_vEntries[ nPos ]->m_sErrorText );
if ( !aText.isEmpty() )
@@ -328,16 +328,16 @@ tools::Rectangle ExtensionBox_Impl::GetEntryRect( const long nPos ) const
Size aSize( GetOutputSizePixel() );
if ( m_bHasScrollBar )
- aSize.Width() -= m_pScrollBar->GetSizePixel().Width();
+ aSize.setWidth( aSize.Width() - m_pScrollBar->GetSizePixel().Width() );
if ( m_vEntries[ nPos ]->m_bActive )
- aSize.Height() = m_nActiveHeight;
+ aSize.setHeight( m_nActiveHeight );
else
- aSize.Height() = m_nStdHeight;
+ aSize.setHeight( m_nStdHeight );
Point aPos( 0, -m_nTopIndex + nPos * m_nStdHeight );
if ( m_bHasActive && ( nPos < m_nActive ) )
- aPos.Y() += m_nActiveHeight - m_nStdHeight;
+ aPos.setY( aPos.Y() + m_nActiveHeight - m_nStdHeight );
return tools::Rectangle( aPos, aSize );
}
@@ -527,7 +527,7 @@ void ExtensionBox_Impl::DrawRow(vcl::RenderContext& rRenderContext, const tools:
else
sDescription = rEntry->m_sDescription;
- aPos.Y() += aTextHeight;
+ aPos.setY( aPos.Y() + aTextHeight );
if (rEntry->m_bActive)
{
long nExtraHeight = 0;
@@ -684,17 +684,17 @@ void ExtensionBox_Impl::Paint(vcl::RenderContext& rRenderContext, const tools::R
Size aSize(GetOutputSizePixel());
if ( m_bHasScrollBar )
- aSize.Width() -= m_pScrollBar->GetSizePixel().Width();
+ aSize.setWidth( aSize.Width() - m_pScrollBar->GetSizePixel().Width() );
const ::osl::MutexGuard aGuard( m_entriesMutex );
typedef std::vector< TEntry_Impl >::iterator ITER;
for (ITER iIndex = m_vEntries.begin(); iIndex < m_vEntries.end(); ++iIndex)
{
- aSize.Height() = (*iIndex)->m_bActive ? m_nActiveHeight : m_nStdHeight;
+ aSize.setHeight( (*iIndex)->m_bActive ? m_nActiveHeight : m_nStdHeight );
tools::Rectangle aEntryRect( aStart, aSize );
DrawRow(rRenderContext, aEntryRect, *iIndex);
- aStart.Y() += aSize.Height();
+ aStart.setY( aStart.Y() + aSize.Height() );
}
}
@@ -1168,7 +1168,7 @@ void ExtensionBox_Impl::DoScroll( long nDelta )
Point aNewSBPt( m_pScrollBar->GetPosPixel() );
tools::Rectangle aScrRect( Point(), GetOutputSizePixel() );
- aScrRect.Right() -= m_pScrollBar->GetSizePixel().Width();
+ aScrRect.SetRight( aScrRect.Right() - m_pScrollBar->GetSizePixel().Width() );
Scroll( 0, -nDelta, aScrRect );
m_pScrollBar->SetPosPixel( aNewSBPt );
diff --git a/desktop/source/splash/splash.cxx b/desktop/source/splash/splash.cxx
index 4d5f31148d71..3045415a9e42 100644
--- a/desktop/source/splash/splash.cxx
+++ b/desktop/source/splash/splash.cxx
@@ -594,7 +594,7 @@ void SplashScreenWindow::Paint(vcl::RenderContext& rRenderContext, const tools::
aNativeControlRegion, aNativeContentRegion))
{
long nProgressHeight = aNativeControlRegion.GetHeight();
- aDrawRect.Top() -= (nProgressHeight - pSpl->_barheight)/2;
+ aDrawRect.SetTop( aDrawRect.Top() - (nProgressHeight - pSpl->_barheight)/2 );
aDrawRect.Bottom() += (nProgressHeight - pSpl->_barheight)/2;
}