diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 09:02:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 09:57:26 +0200 |
commit | 72f36adb93d24a3da8868dad128ab2eca0124fda (patch) | |
tree | 06baca9f873aa59e16c5f3612f5a464c2e0eba46 /vcl/source/filter | |
parent | bff8cd3d52223002263dcb8c09758c4fc753b6e3 (diff) |
loplugin:constparams in vcl
Change-Id: I36afe2107e07ffb9b73c0b76be600e3e999a0fd4
Reviewed-on: https://gerrit.libreoffice.org/40116
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r-- | vcl/source/filter/FilterConfigItem.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/GraphicNativeMetadata.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/graphicfilter.cxx | 4 | ||||
-rw-r--r-- | vcl/source/filter/ipdf/pdfdocument.cxx | 6 | ||||
-rw-r--r-- | vcl/source/filter/sgvmain.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/sgvspln.cxx | 4 | ||||
-rw-r--r-- | vcl/source/filter/sgvspln.hxx | 4 | ||||
-rw-r--r-- | vcl/source/filter/sgvtext.cxx | 6 | ||||
-rw-r--r-- | vcl/source/filter/wmf/wmf.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/wmf/wmfwr.cxx | 2 | ||||
-rw-r--r-- | vcl/source/filter/wmf/wmfwr.hxx | 2 |
11 files changed, 18 insertions, 18 deletions
diff --git a/vcl/source/filter/FilterConfigItem.cxx b/vcl/source/filter/FilterConfigItem.cxx index 9e41fa56acde..2047ff882215 100644 --- a/vcl/source/filter/FilterConfigItem.cxx +++ b/vcl/source/filter/FilterConfigItem.cxx @@ -39,7 +39,7 @@ using namespace ::com::sun::star::container ; using namespace ::com::sun::star::configuration; using namespace ::com::sun::star::task ; // XStatusIndicator -static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory >& rXCfgProv, const OUString& rTree ) +static bool ImpIsTreeAvailable( Reference< XMultiServiceFactory > const & rXCfgProv, const OUString& rTree ) { bool bAvailable = !rTree.isEmpty(); if ( bAvailable ) diff --git a/vcl/source/filter/GraphicNativeMetadata.cxx b/vcl/source/filter/GraphicNativeMetadata.cxx index aea930d7174f..26ba4a72892e 100644 --- a/vcl/source/filter/GraphicNativeMetadata.cxx +++ b/vcl/source/filter/GraphicNativeMetadata.cxx @@ -32,7 +32,7 @@ GraphicNativeMetadata::~GraphicNativeMetadata() {} -bool GraphicNativeMetadata::read(Graphic& rGraphic) +bool GraphicNativeMetadata::read(Graphic const & rGraphic) { GfxLink aLink = rGraphic.GetLink(); if ( aLink.GetType() != GfxLinkType::NativeJpg ) diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx index a0f9d21f9cca..b99d5e0c8490 100644 --- a/vcl/source/filter/graphicfilter.cxx +++ b/vcl/source/filter/graphicfilter.cxx @@ -1313,7 +1313,7 @@ ErrCode GraphicFilter::ImportGraphic( sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat, GraphicFilterImportFlags nImportFlags, - WmfExternal *pExtHeader) + WmfExternal const *pExtHeader) { return ImportGraphic( rGraphic, rPath, rIStream, nFormat, pDeterminedFormat, nImportFlags, nullptr, pExtHeader ); } @@ -1468,7 +1468,7 @@ void GraphicFilter::ImportGraphics(std::vector< std::shared_ptr<Graphic> >& rGra ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath, SvStream& rIStream, sal_uInt16 nFormat, sal_uInt16* pDeterminedFormat, GraphicFilterImportFlags nImportFlags, css::uno::Sequence< css::beans::PropertyValue >* pFilterData, - WmfExternal *pExtHeader ) + WmfExternal const *pExtHeader ) { OUString aFilterName; OUString aExternalFilterName; diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx index 6ec4ba98c1ca..135eece7846a 100644 --- a/vcl/source/filter/ipdf/pdfdocument.cxx +++ b/vcl/source/filter/ipdf/pdfdocument.cxx @@ -255,7 +255,7 @@ sal_Int32 PDFDocument::WriteAppearanceObject() return nAppearanceId; } -sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement& rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId) +sal_Int32 PDFDocument::WriteAnnotObject(PDFObjectElement const & rFirstPage, sal_Int32 nSignatureId, sal_Int32 nAppearanceId) { // Decide what identifier to use for the new signature. sal_uInt32 nNextSignature = GetNextSignature(); @@ -535,7 +535,7 @@ bool PDFDocument::WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& p return true; } -void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement* pRoot) +void PDFDocument::WriteXRef(sal_uInt64 nXRefOffset, PDFReferenceElement const * pRoot) { if (m_pXRefStream) { @@ -1910,7 +1910,7 @@ int PDFDocument::AsHex(char ch) return nRet; } -std::vector<unsigned char> PDFDocument::DecodeHexString(PDFHexStringElement* pElement) +std::vector<unsigned char> PDFDocument::DecodeHexString(PDFHexStringElement const * pElement) { std::vector<unsigned char> aRet; const OString& rHex = pElement->GetValue(); diff --git a/vcl/source/filter/sgvmain.cxx b/vcl/source/filter/sgvmain.cxx index 63d756aaf5ef..9b99f445f71a 100644 --- a/vcl/source/filter/sgvmain.cxx +++ b/vcl/source/filter/sgvmain.cxx @@ -151,7 +151,7 @@ void ReadObjAreaType(SvStream & rInp, ObjAreaType & rArea) rInp.ReadUInt16(rArea.FMuster); } -void ObjkOverSeek(SvStream& rInp, ObjkType& rObjk) +void ObjkOverSeek(SvStream& rInp, ObjkType const & rObjk) { sal_uLong Siz; Siz=(sal_uLong)rObjk.MemSize+rObjk.Last; // ObjSize+ObjAnhSize diff --git a/vcl/source/filter/sgvspln.cxx b/vcl/source/filter/sgvspln.cxx index f3dcc57aa352..7781849cda9d 100644 --- a/vcl/source/filter/sgvspln.cxx +++ b/vcl/source/filter/sgvspln.cxx @@ -616,7 +616,7 @@ sal_uInt16 ParaSpline(sal_uInt16 n, double* x, double* y, sal_uInt8 MargCond, return 0; } -bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, +bool CalcSpline(tools::Polygon const & rPoly, bool Periodic, sal_uInt16& n, double*& ax, double*& ay, double*& bx, double*& by, double*& cx, double*& cy, double*& dx, double*& dy, double*& T) { @@ -685,7 +685,7 @@ bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, return bRet; } -bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly) +bool Spline2Poly(tools::Polygon const & rSpln, bool Periodic, tools::Polygon& rPoly) { const short MinKoord = -32000; // to prevent const short MaxKoord = 32000; // overflows diff --git a/vcl/source/filter/sgvspln.hxx b/vcl/source/filter/sgvspln.hxx index 906dbe2c6f47..6f4543292478 100644 --- a/vcl/source/filter/sgvspln.hxx +++ b/vcl/source/filter/sgvspln.hxx @@ -28,7 +28,7 @@ * coefficient array has been allocated, which can be freed by the caller * using a delete. */ -bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, +bool CalcSpline(tools::Polygon const & rPoly, bool Periodic, sal_uInt16& n, double*& ax, double*& ay, double*& bx, double*& by, double*& cx, double*& cy, double*& dx, double*& dy, double*& T); @@ -39,7 +39,7 @@ bool CalcSpline(tools::Polygon& rPoly, bool Periodic, sal_uInt16& n, * In the first case the polygon has 0, in the second case PolyMax points. * To prevent coordinate overflows we limit them to +/-32000. */ -bool Spline2Poly(tools::Polygon& rSpln, bool Periodic, tools::Polygon& rPoly); +bool Spline2Poly(tools::Polygon const & rSpln, bool Periodic, tools::Polygon& rPoly); #endif // INCLUDED_VCL_SOURCE_FILTER_SGVSPLN_HXX diff --git a/vcl/source/filter/sgvtext.cxx b/vcl/source/filter/sgvtext.cxx index e993471628b5..558c563bae24 100644 --- a/vcl/source/filter/sgvtext.cxx +++ b/vcl/source/filter/sgvtext.cxx @@ -152,7 +152,7 @@ // end of DefBase.Pas -bool CheckTextOutl(ObjAreaType& F, ObjLineType& L) +bool CheckTextOutl(ObjAreaType const & F, ObjLineType const & L) { return (F.FIntens!=L.LIntens) || ((F.FFarbe!=L.LFarbe) && (F.FIntens>0)) || @@ -564,7 +564,7 @@ struct ProcChrSta { ObjTextType Attrib; }; -void InitProcessCharState(ProcChrSta& State, ObjTextType& AktAtr, sal_uInt16 IndexA) +void InitProcessCharState(ProcChrSta& State, ObjTextType const & AktAtr, sal_uInt16 IndexA) { State.Attrib=AktAtr; State.OutCh=0; @@ -587,7 +587,7 @@ UCHAR Upcase(UCHAR c) return c; } -sal_uInt16 GetCharWidth(OutputDevice& rOut, UCHAR c) +sal_uInt16 GetCharWidth(OutputDevice const & rOut, UCHAR c) { sal_uInt16 ChrWidth; diff --git a/vcl/source/filter/wmf/wmf.cxx b/vcl/source/filter/wmf/wmf.cxx index f620a8e00303..fe9a9f4429ca 100644 --- a/vcl/source/filter/wmf/wmf.cxx +++ b/vcl/source/filter/wmf/wmf.cxx @@ -55,7 +55,7 @@ bool ReadWindowMetafile( SvStream& rStream, GDIMetaFile& rMTF ) } bool ConvertGDIMetaFileToWMF( const GDIMetaFile & rMTF, SvStream & rTargetStream, - FilterConfigItem* pConfigItem, bool bPlaceable) + FilterConfigItem const * pConfigItem, bool bPlaceable) { WMFWriter aWMFWriter; GDIMetaFile aGdiMetaFile(rMTF); diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx index 7facdbd8aa93..8013c1e2f09c 100644 --- a/vcl/source/filter/wmf/wmfwr.cxx +++ b/vcl/source/filter/wmf/wmfwr.cxx @@ -1680,7 +1680,7 @@ void WMFWriter::UpdateHeader() } bool WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream, - FilterConfigItem* pFConfigItem, bool bPlaceable ) + FilterConfigItem const * pFConfigItem, bool bPlaceable ) { WMFWriterAttrStackMember * pAt; diff --git a/vcl/source/filter/wmf/wmfwr.hxx b/vcl/source/filter/wmf/wmfwr.hxx index 39474c94cc39..c0fd6e5fca56 100644 --- a/vcl/source/filter/wmf/wmfwr.hxx +++ b/vcl/source/filter/wmf/wmfwr.hxx @@ -198,7 +198,7 @@ private: public: WMFWriter(); - bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem* pFilterConfigItem, bool bPlaceable); + bool WriteWMF(const GDIMetaFile & rMTF, SvStream & rTargetStream, FilterConfigItem const * pFilterConfigItem, bool bPlaceable); }; #endif |