summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 15:28:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 19:00:57 +0200
commit7183b3ba237dc7718501acb512d5ae1c5d0d5f6b (patch)
treeea8b5535f6dbed45f54fa27c8dd492a327644626 /vcl/source/gdi
parentb1f085d66c1d354485edec527fda6abf539af325 (diff)
loplugin:constmethod handle more cases
remove some of the naming limitations, and handle pointer parameters better. I only let the plugin run up till vcl/ Change-Id: Ice916e0157031ab531c47f10778f406b07966251 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122892 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/gfxlink.cxx2
-rw-r--r--vcl/source/gdi/print.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/gfxlink.cxx b/vcl/source/gdi/gfxlink.cxx
index cc5386039e3a..147f89febc85 100644
--- a/vcl/source/gdi/gfxlink.cxx
+++ b/vcl/source/gdi/gfxlink.cxx
@@ -110,7 +110,7 @@ void GfxLink::SetPrefMapMode( const MapMode& rPrefMapMode )
mbPrefMapModeValid = true;
}
-bool GfxLink::LoadNative( Graphic& rGraphic )
+bool GfxLink::LoadNative( Graphic& rGraphic ) const
{
bool bRet = false;
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 9c6df8648276..a4d020008f30 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1425,7 +1425,7 @@ const PaperInfo& Printer::GetPaperInfo( int nPaper ) const
return mpInfoPrinter->m_aPaperFormats[nPaper];
}
-Size Printer::GetPaperSize( int nPaper )
+Size Printer::GetPaperSize( int nPaper ) const
{
PaperInfo aInfo = GetPaperInfo( nPaper );
return PixelToLogic( Size( aInfo.getWidth(), aInfo.getHeight() ) );