diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 12:26:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-31 14:23:39 +0200 |
commit | 56be2245bf11ddb64fcfbf8175a864d688ac5c1a (patch) | |
tree | 567e7e061a2d1caf653fd44cc02e9c26512cb230 /emfio | |
parent | 2702c2d1eb9af2d03d5e0a1b7704ab170a5e8d31 (diff) |
loplugin:constparams in dbaccess
Change-Id: I4994c4f0ae614c8f98466f440412f28380ddd6a6
Reviewed-on: https://gerrit.libreoffice.org/40589
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/inc/mtftools.hxx | 6 | ||||
-rw-r--r-- | emfio/qa/cppunit/emf/EmfImportTest.cxx | 4 | ||||
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/emfio/inc/mtftools.hxx b/emfio/inc/mtftools.hxx index 38fff789a053..fb8dd02a2550 100644 --- a/emfio/inc/mtftools.hxx +++ b/emfio/inc/mtftools.hxx @@ -331,7 +331,7 @@ namespace emfio , aType(WinMtfFillStyleType::Solid) {} - explicit WinMtfFillStyle(Bitmap& rBmp) + explicit WinMtfFillStyle(Bitmap const & rBmp) : bTransparent(false) , aType(WinMtfFillStyleType::Pattern) , aBmp(rBmp) @@ -609,7 +609,7 @@ namespace emfio bool bRecordPath ); void DrawText(Point& rPosition, - OUString& rString, + OUString const & rString, long* pDXArry = nullptr, long* pDYArry = nullptr, bool bRecordPath = false, @@ -629,7 +629,7 @@ namespace emfio void UpdateClipRegion(); void AddFromGDIMetaFile(GDIMetaFile& rGDIMetaFile); - void PassEMFPlus(void* pBuffer, sal_uInt32 nLength); + void PassEMFPlus(void const * pBuffer, sal_uInt32 nLength); void PassEMFPlusHeaderInfo(); Color ReadColor(); diff --git a/emfio/qa/cppunit/emf/EmfImportTest.cxx b/emfio/qa/cppunit/emf/EmfImportTest.cxx index 63b6eb51c2d7..a78aaeabeba2 100644 --- a/emfio/qa/cppunit/emf/EmfImportTest.cxx +++ b/emfio/qa/cppunit/emf/EmfImportTest.cxx @@ -36,7 +36,7 @@ using drawinglayer::primitive2d::Primitive2DContainer; class Test : public test::BootstrapFixture, public XmlTestTools { - void checkRectPrimitive(Primitive2DSequence& rPrimitive); + void checkRectPrimitive(Primitive2DSequence const & rPrimitive); void testWorking(); @@ -68,7 +68,7 @@ Primitive2DSequence Test::parseEmf(const char* aSource) return xEmfParser->getDecomposition(aInputStream, aPath, aEmptyValues); } -void Test::checkRectPrimitive(Primitive2DSequence& rPrimitive) +void Test::checkRectPrimitive(Primitive2DSequence const & rPrimitive) { Primitive2dXmlDump dumper; xmlDocPtr pDocument = dumper.dumpAndParse(comphelper::sequenceToContainer<Primitive2DContainer>(rPrimitive)); diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index 7c2938730b42..1698eec4a37a 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1404,7 +1404,7 @@ namespace emfio } } - void MtfTools::DrawText( Point& rPosition, OUString& rText, long* pDXArry, long* pDYArry, bool bRecordPath, sal_Int32 nGfxMode ) + void MtfTools::DrawText( Point& rPosition, OUString const & rText, long* pDXArry, long* pDYArry, bool bRecordPath, sal_Int32 nGfxMode ) { UpdateClipRegion(); rPosition = ImplMap( rPosition ); @@ -2272,7 +2272,7 @@ namespace emfio mpGDIMetaFile->UseCanvas( true ); } - void MtfTools::PassEMFPlus( void* pBuffer, sal_uInt32 nLength ) + void MtfTools::PassEMFPlus( void const * pBuffer, sal_uInt32 nLength ) { EMFP_DEBUG(printf ("\t\t\tadd EMF_PLUS comment length %04x\n",(unsigned int) nLength)); mpGDIMetaFile->AddAction( new MetaCommentAction( "EMF_PLUS", 0, static_cast<const sal_uInt8*>(pBuffer), nLength ) ); |