summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmltabw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 10:13:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 12:58:49 +0100
commit180f2860525fb7ed4892b417b20c3f2f9cbb44e0 (patch)
treef4c11ab79c1ba022f31944668eae2f20a8f5c808 /sw/source/filter/html/htmltabw.cxx
parentb99dd5350c21ad4096af0ae281c518b127fa37b5 (diff)
loplugin:changetoolsgen in sw
Change-Id: If07efe4c15cfc28df38a9327856d39313ca78d50 Reviewed-on: https://gerrit.libreoffice.org/50078 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/html/htmltabw.cxx')
-rw-r--r--sw/source/filter/html/htmltabw.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/html/htmltabw.cxx b/sw/source/filter/html/htmltabw.cxx
index bc79a91cf9cf..3bfe273c32b2 100644
--- a/sw/source/filter/html/htmltabw.cxx
+++ b/sw/source/filter/html/htmltabw.cxx
@@ -111,7 +111,7 @@ void SwHTMLWrtTable::Pixelize( sal_uInt16& rValue )
Size aSz( rValue, 0 );
aSz = Application::GetDefaultDevice()->LogicToPixel( aSz, MapMode(MapUnit::MapTwip) );
if( !aSz.Width() )
- aSz.Width() = 1;
+ aSz.setWidth( 1 );
aSz = Application::GetDefaultDevice()->PixelToLogic( aSz, MapMode(MapUnit::MapTwip) );
rValue = static_cast<sal_uInt16>(aSz.Width());
}
@@ -351,9 +351,9 @@ void SwHTMLWrtTable::OutTableCell( SwHTMLWriter& rWrt,
aPixelSz = Application::GetDefaultDevice()->LogicToPixel( aPixelSz,
MapMode(MapUnit::MapTwip) );
if( aOldSz.Width() && !aPixelSz.Width() )
- aPixelSz.Width() = 1;
+ aPixelSz.setWidth( 1 );
if( aOldSz.Height() && !aPixelSz.Height() )
- aPixelSz.Height() = 1;
+ aPixelSz.setHeight( 1 );
}
// output WIDTH: from layout or calculated
@@ -657,9 +657,9 @@ void SwHTMLWrtTable::Write( SwHTMLWriter& rWrt, sal_Int16 eAlign,
Application::GetDefaultDevice()->LogicToPixel( Size(nHSpace,nVSpace),
MapMode(MapUnit::MapTwip) );
if( !aPixelSpc.Width() && nHSpace )
- aPixelSpc.Width() = 1;
+ aPixelSpc.setWidth( 1 );
if( !aPixelSpc.Height() && nVSpace )
- aPixelSpc.Height() = 1;
+ aPixelSpc.setHeight( 1 );
if( aPixelSpc.Width() )
{