diff options
70 files changed, 113 insertions, 111 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx index d139b4d937c0..b52ab1e5e642 100644 --- a/chart2/source/view/axes/VCartesianAxis.cxx +++ b/chart2/source/view/axes/VCartesianAxis.cxx @@ -74,7 +74,7 @@ VCartesianAxis::~VCartesianAxis() m_pPosHelper = nullptr; } -void lcl_ResizeTextShapeToFitAvailableSpace( Reference< drawing::XShape >& xShape2DText, +void lcl_ResizeTextShapeToFitAvailableSpace( Reference< drawing::XShape > const & xShape2DText, const AxisLabelProperties& rAxisLabelProperties, const OUString& rLabel, const tNameSequence& rPropNames, diff --git a/connectivity/source/drivers/evoab2/NConnection.cxx b/connectivity/source/drivers/evoab2/NConnection.cxx index 0b2b724e9764..29fefcf4e80a 100644 --- a/connectivity/source/drivers/evoab2/NConnection.cxx +++ b/connectivity/source/drivers/evoab2/NConnection.cxx @@ -38,7 +38,7 @@ using namespace ::com::sun::star::sdbcx; using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::lang; -OEvoabConnection::OEvoabConnection(OEvoabDriver& _rDriver) +OEvoabConnection::OEvoabConnection(OEvoabDriver const & _rDriver) : m_rDriver(_rDriver) , m_eSDBCAddressType(SDBCAddress::EVO_LOCAL) , m_xCatalog(nullptr) diff --git a/connectivity/source/drivers/evoab2/NConnection.hxx b/connectivity/source/drivers/evoab2/NConnection.hxx index b7860bce0a3d..9ece2b65b280 100644 --- a/connectivity/source/drivers/evoab2/NConnection.hxx +++ b/connectivity/source/drivers/evoab2/NConnection.hxx @@ -60,7 +60,7 @@ namespace connectivity virtual ~OEvoabConnection() override; public: - explicit OEvoabConnection( OEvoabDriver& _rDriver ); + explicit OEvoabConnection( OEvoabDriver const & _rDriver ); /// @throws css::sdbc::SQLException void construct(const OUString& _rUrl,const css::uno::Sequence< css::beans::PropertyValue >& _rInfo ); diff --git a/cui/source/factory/init.cxx b/cui/source/factory/init.cxx index 54c51d2c49b8..d2bf5ed6606e 100644 --- a/cui/source/factory/init.cxx +++ b/cui/source/factory/init.cxx @@ -23,7 +23,7 @@ // caution: needs C-Linkage since dynamically loaded via symbol name extern "C" { -SAL_DLLPUBLIC_EXPORT bool GetSpecialCharsForEdit(vcl::Window* i_pParent, const vcl::Font& i_rFont, OUString& o_rResult) +SAL_DLLPUBLIC_EXPORT bool GetSpecialCharsForEdit(vcl::Window const * i_pParent, const vcl::Font& i_rFont, OUString& o_rResult) { bool bRet = false; SvxCharacterMap aDlg(i_pParent ? i_pParent->GetFrameWeld() : nullptr, nullptr, false); diff --git a/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx b/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx index 2511ef5ec3ea..c7e07ec90b83 100644 --- a/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx +++ b/dbaccess/source/filter/hsqldb/hsqlbinarynode.cxx @@ -32,7 +32,7 @@ HsqlBinaryNode::HsqlBinaryNode(sal_Int32 nPos) { } -void HsqlBinaryNode::readChildren(HsqlRowInputStream& input) +void HsqlBinaryNode::readChildren(HsqlRowInputStream const& input) { SvStream* pStream = input.getInputStream(); if (!pStream) diff --git a/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx b/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx index 5abc294bec2f..0f9271b8eef1 100644 --- a/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx +++ b/dbaccess/source/filter/hsqldb/hsqlbinarynode.hxx @@ -37,7 +37,7 @@ public: * * @param rInput input stream where the positions should be read from. */ - void readChildren(HsqlRowInputStream& rInput); + void readChildren(HsqlRowInputStream const& rInput); /** * Get Position of left children. It should be called only after position of diff --git a/dbaccess/source/filter/hsqldb/hsqlimport.cxx b/dbaccess/source/filter/hsqldb/hsqlimport.cxx index b7f854777011..c5f77cef12ef 100644 --- a/dbaccess/source/filter/hsqldb/hsqlimport.cxx +++ b/dbaccess/source/filter/hsqldb/hsqlimport.cxx @@ -44,7 +44,7 @@ using ColumnTypeVector = std::vector<dbahsql::ColumnDefinition>; using RowVector = std::vector<Any>; using IndexVector = std::vector<sal_Int32>; -void lcl_setParams(const RowVector& row, Reference<XParameters>& xParam, +void lcl_setParams(const RowVector& row, Reference<XParameters> const& xParam, const ColumnTypeVector& rColTypes) { assert(row.size() == rColTypes.size()); diff --git a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx index 277b5c176b20..a2c736d9b5ac 100644 --- a/dbaccess/source/filter/hsqldb/rowinputbinary.cxx +++ b/dbaccess/source/filter/hsqldb/rowinputbinary.cxx @@ -142,7 +142,7 @@ typedef std::vector<ColumnDefinition> ColumnTypeVector; HsqlRowInputStream::HsqlRowInputStream() {} -void HsqlRowInputStream::setInputStream(Reference<XInputStream>& rStream) +void HsqlRowInputStream::setInputStream(Reference<XInputStream> const& rStream) { m_pStream.reset(utl::UcbStreamHelper::CreateStream(rStream, true)); m_pStream->SetEndian(SvStreamEndian::BIG); diff --git a/dbaccess/source/filter/hsqldb/rowinputbinary.hxx b/dbaccess/source/filter/hsqldb/rowinputbinary.hxx index 1fa5a6066476..3c66b799dc5a 100644 --- a/dbaccess/source/filter/hsqldb/rowinputbinary.hxx +++ b/dbaccess/source/filter/hsqldb/rowinputbinary.hxx @@ -45,7 +45,7 @@ public: */ void seek(sal_Int32 nPos); - void setInputStream(css::uno::Reference<css::io::XInputStream>& rStream); + void setInputStream(css::uno::Reference<css::io::XInputStream> const& rStream); SvStream* getInputStream() const; }; diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index db4cc89d46fa..e3ca3e8af707 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -694,7 +694,7 @@ namespace } return aFieldListStr.makeStringAndClear(); } - bool GenerateCriterias( OQueryDesignView* _pView, + bool GenerateCriterias( OQueryDesignView const * _pView, OUStringBuffer& rRetStr, OUStringBuffer& rHavingStr, OTableFields& _rFieldList, @@ -861,7 +861,7 @@ namespace } return true; } - SqlParseError GenerateOrder( OQueryDesignView* _pView, + SqlParseError GenerateOrder( OQueryDesignView const * _pView, OTableFields& _rFieldList, bool bMulti, OUString& _rsRet) diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx index bfe51fd77bf1..f0ea18fa3bdc 100644 --- a/extensions/source/scanner/sanedlg.cxx +++ b/extensions/source/scanner/sanedlg.cxx @@ -41,7 +41,7 @@ namespace { -void DrawRectangles(vcl::RenderContext& rRenderContext, Point& rUL, Point& rBR) +void DrawRectangles(vcl::RenderContext& rRenderContext, Point const & rUL, Point const & rBR) { int nMiddleX, nMiddleY; Point aBL, aUR; diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx index a1ee269a408c..f74ba6fb5d5b 100644 --- a/filter/source/graphicfilter/icgm/bitmap.cxx +++ b/filter/source/graphicfilter/icgm/bitmap.cxx @@ -202,7 +202,7 @@ void CGMBitmap::ImplGetBitmap( CGMBitmapDescriptor& rDesc ) rDesc.mxBitmap = vcl::bitmap::CreateFromData(std::move(aBitmap)); } -std::vector<Color> CGMBitmap::ImplGeneratePalette( CGMBitmapDescriptor& rDesc ) +std::vector<Color> CGMBitmap::ImplGeneratePalette( CGMBitmapDescriptor const & rDesc ) { sal_uInt16 nColors = sal::static_int_cast< sal_uInt16 >( 1 << rDesc.mnDstBitsPerPixel); diff --git a/filter/source/graphicfilter/icgm/bitmap.hxx b/filter/source/graphicfilter/icgm/bitmap.hxx index 6b5d9986ad73..2d2c12fd64fd 100644 --- a/filter/source/graphicfilter/icgm/bitmap.hxx +++ b/filter/source/graphicfilter/icgm/bitmap.hxx @@ -67,7 +67,7 @@ class CGMBitmap std::unique_ptr<CGMBitmapDescriptor> pCGMBitmapDescriptor; bool ImplGetDimensions( CGMBitmapDescriptor& ); - std::vector<Color> ImplGeneratePalette( CGMBitmapDescriptor& ); + std::vector<Color> ImplGeneratePalette( CGMBitmapDescriptor const & ); void ImplGetBitmap( CGMBitmapDescriptor& ); void ImplInsert( CGMBitmapDescriptor const & rSource, CGMBitmapDescriptor& rDest ); public: diff --git a/i18npool/source/search/textsearch.cxx b/i18npool/source/search/textsearch.cxx index db3c5410b47c..495537d255c0 100644 --- a/i18npool/source/search/textsearch.cxx +++ b/i18npool/source/search/textsearch.cxx @@ -885,7 +885,7 @@ void TextSearch::RESrchPrepare( const css::util::SearchOptions2& rOptions) } -static bool lcl_findRegex( std::unique_ptr<RegexMatcher>& pRegexMatcher, sal_Int32 nStartPos, UErrorCode & rIcuErr ) +static bool lcl_findRegex( std::unique_ptr<RegexMatcher> const & pRegexMatcher, sal_Int32 nStartPos, UErrorCode & rIcuErr ) { if (!pRegexMatcher->find( nStartPos, rIcuErr)) { diff --git a/include/oox/core/xmlfilterbase.hxx b/include/oox/core/xmlfilterbase.hxx index 69586fe020bb..ffe0c5bc45e3 100644 --- a/include/oox/core/xmlfilterbase.hxx +++ b/include/oox/core/xmlfilterbase.hxx @@ -263,7 +263,7 @@ private: virtual StorageRef implCreateStorage( const css::uno::Reference< css::io::XStream >& rxOutStream ) const override; - void importCustomFragments(css::uno::Reference<css::embed::XStorage>& xDocumentStorage); + void importCustomFragments(css::uno::Reference<css::embed::XStorage> const & xDocumentStorage); private: ::std::unique_ptr< XmlFilterBaseImpl > mxImpl; diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index b285d8bece72..f7a577404d6c 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -289,7 +289,7 @@ protected: void SetTextSizeDirty() { bTextSizeDirty=true; } // rAnchorRect is InOut-Parameter! - void ImpSetContourPolygon( SdrOutliner& rOutliner, tools::Rectangle& rAnchorRect, bool bLineWidth ) const; + void ImpSetContourPolygon( SdrOutliner& rOutliner, tools::Rectangle const & rAnchorRect, bool bLineWidth ) const; virtual SdrObjGeoData* NewGeoData() const override; virtual void SaveGeoData(SdrObjGeoData& rGeo) const override; diff --git a/include/vcl/BitmapTools.hxx b/include/vcl/BitmapTools.hxx index 00f7d1b89b5e..2064cb2d01dc 100644 --- a/include/vcl/BitmapTools.hxx +++ b/include/vcl/BitmapTools.hxx @@ -109,9 +109,9 @@ VCL_DLLPUBLIC css::uno::Sequence< sal_Int8 > GetMaskDIB(BitmapEx const & aBmpEx) * @param data will be filled with alpha data, if xBitmap is alpha/transparent image * @param bHasAlpha will be set to true if resulting surface has alpha **/ -VCL_DLLPUBLIC void CanvasCairoExtractBitmapData( BitmapEx & rBmpEx, Bitmap & rBitmap, unsigned char*& data, bool& bHasAlpha, long& rnWidth, long& rnHeight ); +VCL_DLLPUBLIC void CanvasCairoExtractBitmapData( BitmapEx const & rBmpEx, Bitmap & rBitmap, unsigned char*& data, bool& bHasAlpha, long& rnWidth, long& rnHeight ); -VCL_DLLPUBLIC css::uno::Sequence< sal_Int8 > CanvasExtractBitmapData(BitmapEx & rBitmapEx, const css::geometry::IntegerRectangle2D& rect); +VCL_DLLPUBLIC css::uno::Sequence< sal_Int8 > CanvasExtractBitmapData(BitmapEx const & rBitmapEx, const css::geometry::IntegerRectangle2D& rect); }} // end vcl::bitmap diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 649faa6388ef..8a2d63b44176 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1507,7 +1507,7 @@ private: SAL_DLLPRIVATE void DrawDeviceAlphaBitmapSlowPath( const Bitmap& rBitmap, const AlphaMask& rAlpha, tools::Rectangle aDstRect, tools::Rectangle aBmpRect, - Size& aOutSz, Point& aOutPt); + Size const & aOutSz, Point const & aOutPt); SAL_DLLPRIVATE void BlendBitmap( diff --git a/include/vcl/tabctrl.hxx b/include/vcl/tabctrl.hxx index 747b30160fac..6286ecea7ef7 100644 --- a/include/vcl/tabctrl.hxx +++ b/include/vcl/tabctrl.hxx @@ -72,7 +72,7 @@ protected: SAL_DLLPRIVATE bool ImplPosCurTabPage(); virtual void ImplActivateTabPage( bool bNext ); SAL_DLLPRIVATE void ImplShowFocus(); - SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem, + SAL_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem const * pItem, const tools::Rectangle& rCurRect, bool bFirstInGroup, bool bLastInGroup); SAL_DLLPRIVATE void ImplFreeLayoutData(); diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index 2bbb23a38721..57a752489960 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -954,7 +954,7 @@ OUString XmlFilterBase::getNamespaceURL(sal_Int32 nNSID) const return itr->second; } -void XmlFilterBase::importCustomFragments(css::uno::Reference<css::embed::XStorage>& xDocumentStorage) +void XmlFilterBase::importCustomFragments(css::uno::Reference<css::embed::XStorage> const & xDocumentStorage) { Reference<XRelationshipAccess> xRelations(xDocumentStorage, UNO_QUERY); if (xRelations.is()) diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 6a0876f50693..aad1c41ad8fe 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2962,7 +2962,7 @@ OUString getFieldTypeString( const chart2::DataPointCustomLabelFieldType aType ) return OUString(); } -void writeRunProperties( ChartExport* pChartExport, Reference<XPropertySet>& xPropertySet ) +void writeRunProperties( ChartExport* pChartExport, Reference<XPropertySet> const & xPropertySet ) { bool bDummy = false; sal_Int32 nDummy; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 69302890958c..e62c2e47f7c2 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -615,7 +615,7 @@ public: SC_DLLPUBLIC ScRangeName* GetRangeName() const; void SetRangeName(SCTAB nTab, std::unique_ptr<ScRangeName> pNew); void SetRangeName( std::unique_ptr<ScRangeName> pNewRangeName ); - bool IsAddressInRangeName( RangeNameScope eScope, ScAddress& rAddress); + bool IsAddressInRangeName( RangeNameScope eScope, const ScAddress& rAddress); /** Find a named expression / range name in either global or a local scope. @param nTab diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 3d9e2b72b685..d71a408905b7 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -186,8 +186,8 @@ public: static ScAnchorType GetAnchorType( const SdrObject& ); std::vector<SdrObject*> GetObjectsAnchoredToRows(SCTAB nTab, SCROW nStartRow, SCROW nEndRow); std::map<SCROW, std::vector<SdrObject*>> GetObjectsAnchoredToRange(SCTAB nTab, SCCOL nCol, SCROW nStartRow, SCROW nEndRow); - bool HasObjectsAnchoredInRange(ScRange& rRange); - void MoveObject(SdrObject* pObj, ScAddress& rNewPosition); + bool HasObjectsAnchoredInRange(const ScRange& rRange); + void MoveObject(SdrObject* pObj, const ScAddress& rNewPosition); // positions for detektive lines static ScDrawObjData* GetObjData( SdrObject* pObj, bool bCreate=false ); diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index 5ef81ccde30e..cda718468f97 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -202,7 +202,7 @@ void ScDocument::SetRangeName( std::unique_ptr<ScRangeName> pNewRangeName ) pRangeName = std::move(pNewRangeName); } -bool ScDocument::IsAddressInRangeName( RangeNameScope eScope, ScAddress& rAddress ) +bool ScDocument::IsAddressInRangeName( RangeNameScope eScope, const ScAddress& rAddress ) { ScRangeName* pRangeNames; ScRange aNameRange; diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 8f8983a4c553..1e775b481999 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -2150,7 +2150,7 @@ ScDrawLayer::GetObjectsAnchoredToRange(SCTAB nTab, SCCOL nCol, SCROW nStartRow, return aRowObjects; } -bool ScDrawLayer::HasObjectsAnchoredInRange(ScRange& rRange) +bool ScDrawLayer::HasObjectsAnchoredInRange(const ScRange& rRange) { // This only works for one table at a time assert(rRange.aStart.Tab() == rRange.aEnd.Tab()); @@ -2174,7 +2174,7 @@ bool ScDrawLayer::HasObjectsAnchoredInRange(ScRange& rRange) return false; } -void ScDrawLayer::MoveObject(SdrObject* pObject, ScAddress& rNewPosition) +void ScDrawLayer::MoveObject(SdrObject* pObject, const ScAddress& rNewPosition) { // Get anchor data ScDrawObjData* pObjData = GetObjData(pObject, false); diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 8c548acd1462..b0673dd2017d 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -559,7 +559,7 @@ void ScTable::CopyCellToDocument(SCCOL nSrcCol, SCROW nSrcRow, SCCOL nDestCol, S namespace { -bool CheckAndDeduplicateCondFormat(ScDocument* pDocument, ScConditionalFormat* pOldFormat, ScConditionalFormat* pNewFormat, SCTAB nTab) +bool CheckAndDeduplicateCondFormat(ScDocument* pDocument, ScConditionalFormat* pOldFormat, const ScConditionalFormat* pNewFormat, SCTAB nTab) { if (!pOldFormat) return false; diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx index 1e51b864bb70..4bd9db8ef79d 100644 --- a/sc/source/filter/excel/xeescher.cxx +++ b/sc/source/filter/excel/xeescher.cxx @@ -139,7 +139,7 @@ const char *ToVertAlign( SdrTextVertAdjust eAdjust ) } } -void lcl_WriteAnchorVertex( sax_fastparser::FSHelperPtr const & rComments, tools::Rectangle &aRect ) +void lcl_WriteAnchorVertex( sax_fastparser::FSHelperPtr const & rComments, const tools::Rectangle &aRect ) { rComments->startElement( FSNS( XML_xdr, XML_col ), FSEND ); rComments->writeEscaped( OUString::number( aRect.Left() ) ); diff --git a/sc/source/ui/dbgui/PivotLayoutTreeList.cxx b/sc/source/ui/dbgui/PivotLayoutTreeList.cxx index 5c542b238772..91eaea1dfdc5 100644 --- a/sc/source/ui/dbgui/PivotLayoutTreeList.cxx +++ b/sc/source/ui/dbgui/PivotLayoutTreeList.cxx @@ -97,7 +97,7 @@ void ScPivotLayoutTreeList::InsertEntryForSourceTarget(SvTreeListEntry* pSource, InsertEntryForItem(pOriginalItemValue, nPosition); } -void ScPivotLayoutTreeList::InsertEntryForItem(ScItemValue* pItemValue, sal_uLong nPosition) +void ScPivotLayoutTreeList::InsertEntryForItem(const ScItemValue* pItemValue, sal_uLong nPosition) { ScItemValue *pListItemValue = new ScItemValue(pItemValue); maItemValues.push_back(std::unique_ptr<ScItemValue>(pListItemValue)); diff --git a/sc/source/ui/inc/PivotLayoutTreeList.hxx b/sc/source/ui/inc/PivotLayoutTreeList.hxx index e658aac62738..8af3cd1d193d 100644 --- a/sc/source/ui/inc/PivotLayoutTreeList.hxx +++ b/sc/source/ui/inc/PivotLayoutTreeList.hxx @@ -29,7 +29,7 @@ public: protected: virtual void InsertEntryForSourceTarget(SvTreeListEntry* pSource, SvTreeListEntry* pTarget) override; - void InsertEntryForItem(ScItemValue* pItemValue, sal_uLong nPosition); + void InsertEntryForItem(const ScItemValue* pItemValue, sal_uLong nPosition); virtual void KeyInput(const KeyEvent& rKeyEvent) override; }; diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index e6d9ad63a164..5cc56686897c 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -1794,7 +1794,7 @@ void ScGridWindow::HandleMouseButtonDown( const MouseEvent& rMEvt, MouseEventSta } } -void lcl_executeList( ScViewData* pViewData, ScModule* pScMod, ScMarkData& rMark ) +void lcl_executeList( const ScViewData* pViewData, ScModule* pScMod, const ScMarkData& rMark ) { pViewData->GetView()->SelectionChanged(); diff --git a/sc/source/ui/view/viewfun7.cxx b/sc/source/ui/view/viewfun7.cxx index e92cac423167..3b985ac3e4e6 100644 --- a/sc/source/ui/view/viewfun7.cxx +++ b/sc/source/ui/view/viewfun7.cxx @@ -53,7 +53,7 @@ bool bPasteIsMove = false; using namespace com::sun::star; -static void lcl_AdjustInsertPos( ScViewData* pData, Point& rPos, Size& rSize ) +static void lcl_AdjustInsertPos( ScViewData* pData, Point& rPos, const Size& rSize ) { SdrPage* pPage = pData->GetScDrawView()->GetModel()->GetPage( static_cast<sal_uInt16>(pData->GetTabNo()) ); OSL_ENSURE(pPage,"pPage ???"); diff --git a/sd/inc/notifydocumentevent.hxx b/sd/inc/notifydocumentevent.hxx index db838fd4de55..960999774c02 100644 --- a/sd/inc/notifydocumentevent.hxx +++ b/sd/inc/notifydocumentevent.hxx @@ -24,9 +24,9 @@ class SdDrawDocument; -void NotifyDocumentEvent( SdDrawDocument& rDocument, const OUString& rEventName ); +void NotifyDocumentEvent( SdDrawDocument const & rDocument, const OUString& rEventName ); -void NotifyDocumentEvent( SdDrawDocument& rDocument, const OUString& rEventName, const css::uno::Reference< css::uno::XInterface >& xSource ); +void NotifyDocumentEvent( SdDrawDocument const & rDocument, const OUString& rEventName, const css::uno::Reference< css::uno::XInterface >& xSource ); #endif diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 4adc5eeb4a49..7ca401b50dff 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -2999,7 +2999,7 @@ bool PPTWriter::ImplCreateCellBorder( const CellBorder* pCellBorder, sal_Int32 n //get merged cell's width sal_Int32 GetCellRight( sal_Int32 nColumn, - ::tools::Rectangle& rect, + ::tools::Rectangle const & rect, std::vector< std::pair< sal_Int32, sal_Int32 > >& aColumns, uno::Reference< table::XMergeableCell > const & xCell ) { @@ -3016,7 +3016,7 @@ sal_Int32 GetCellRight( sal_Int32 nColumn, } //get merged cell's height sal_Int32 GetCellBottom( sal_Int32 nRow, - ::tools::Rectangle& rect, + ::tools::Rectangle const & rect, std::vector< std::pair< sal_Int32, sal_Int32 > >& aRows, uno::Reference< table::XMergeableCell > const & xCell ) { diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 50f9c1c4fae1..1cca1e11aa62 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -525,7 +525,7 @@ void FuConstructRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj) return aRetval; } -void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject& rObj) +void FuConstructRectangle::SetLineEnds(SfxItemSet& rAttr, SdrObject const & rObj) { if ( (rObj.GetObjIdentifier() == OBJ_EDGE && nSlotId != SID_TOOL_CONNECTOR && diff --git a/sd/source/ui/inc/fuconrec.hxx b/sd/source/ui/inc/fuconrec.hxx index 0aeef38f5af0..68aa8466efb3 100644 --- a/sd/source/ui/inc/fuconrec.hxx +++ b/sd/source/ui/inc/fuconrec.hxx @@ -48,7 +48,7 @@ public: virtual void Deactivate() override; void SetAttributes(SfxItemSet& rAttr, SdrObject* pObj); - void SetLineEnds(SfxItemSet& rAttr, SdrObject& rObj); + void SetLineEnds(SfxItemSet& rAttr, SdrObject const & rObj); virtual SdrObject* CreateDefaultObject(const sal_uInt16 nID, const ::tools::Rectangle& rRectangle) override; diff --git a/sd/source/ui/inc/unomodel.hxx b/sd/source/ui/inc/unomodel.hxx index 04b708bfcc22..5e63e8b2c6a9 100644 --- a/sd/source/ui/inc/unomodel.hxx +++ b/sd/source/ui/inc/unomodel.hxx @@ -137,7 +137,7 @@ public: SdXImpressDocument(SdDrawDocument* pDoc, bool bClipBoard); virtual ~SdXImpressDocument() throw() override; - static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument& rDoc ); + static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument const & rDoc ); // intern bool operator==( const SdXImpressDocument& rModel ) const { return mpDoc == rModel.mpDoc; } diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 3e848923d05c..9186385f182c 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -3468,7 +3468,7 @@ uno::Sequence< OUString > SAL_CALL SdDocLinkTargets::getSupportedServiceNames() return aSeq; } -rtl::Reference< SdXImpressDocument > SdXImpressDocument::GetModel( SdDrawDocument& rDocument ) +rtl::Reference< SdXImpressDocument > SdXImpressDocument::GetModel( SdDrawDocument const & rDocument ) { rtl::Reference< SdXImpressDocument > xRet; ::sd::DrawDocShell* pDocShell(rDocument.GetDocSh()); @@ -3482,7 +3482,7 @@ rtl::Reference< SdXImpressDocument > SdXImpressDocument::GetModel( SdDrawDocumen return xRet; } -void NotifyDocumentEvent( SdDrawDocument& rDocument, const OUString& rEventName ) +void NotifyDocumentEvent( SdDrawDocument const & rDocument, const OUString& rEventName ) { rtl::Reference< SdXImpressDocument > xModel( SdXImpressDocument::GetModel( rDocument ) ); @@ -3494,7 +3494,7 @@ void NotifyDocumentEvent( SdDrawDocument& rDocument, const OUString& rEventName } } -void NotifyDocumentEvent( SdDrawDocument& rDocument, const OUString& rEventName, const uno::Reference< uno::XInterface >& xSource ) +void NotifyDocumentEvent( SdDrawDocument const & rDocument, const OUString& rEventName, const uno::Reference< uno::XInterface >& xSource ) { rtl::Reference< SdXImpressDocument > xModel( SdXImpressDocument::GetModel( rDocument ) ); diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index 9879307d9830..b40d1d117c18 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -157,7 +157,7 @@ extern "C" { static void thisModule() {} } #else -extern "C" bool GetSpecialCharsForEdit( vcl::Window* i_pParent, const vcl::Font& i_rFont, OUString& o_rOutString ); +extern "C" bool GetSpecialCharsForEdit( vcl::Window const * i_pParent, const vcl::Font& i_rFont, OUString& o_rOutString ); #endif diff --git a/sfx2/source/appl/linksrc.cxx b/sfx2/source/appl/linksrc.cxx index 6d172d202f79..dde56a43d23f 100644 --- a/sfx2/source/appl/linksrc.cxx +++ b/sfx2/source/appl/linksrc.cxx @@ -97,7 +97,7 @@ public: SvLinkSource_Entry_Impl *operator[](size_t idx) const { return mvData[idx].get(); } void push_back(SvLinkSource_Entry_Impl* rData) { mvData.emplace_back(rData); } - void DeleteAndDestroy(SvLinkSource_Entry_Impl* p) + void DeleteAndDestroy(SvLinkSource_Entry_Impl const * p) { for (auto it = mvData.begin(); it != mvData.end(); ++it) if (it->get() == p) @@ -118,7 +118,7 @@ public: SvLinkSource_Entry_Impl* Curr() { return nPos < aArr.size() ? aArr[ nPos ] : nullptr; } SvLinkSource_Entry_Impl* Next(); - bool IsValidCurrValue( SvLinkSource_Entry_Impl* pEntry ); + bool IsValidCurrValue( SvLinkSource_Entry_Impl const * pEntry ); }; SvLinkSource_EntryIter_Impl::SvLinkSource_EntryIter_Impl( @@ -129,7 +129,7 @@ SvLinkSource_EntryIter_Impl::SvLinkSource_EntryIter_Impl( aArr.push_back(i.get()); } -bool SvLinkSource_EntryIter_Impl::IsValidCurrValue( SvLinkSource_Entry_Impl* pEntry ) +bool SvLinkSource_EntryIter_Impl::IsValidCurrValue( SvLinkSource_Entry_Impl const * pEntry ) { if ( nPos >= aArr.size() ) return false; diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 63ca33f850fc..4be76cbdd7a8 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -536,7 +536,7 @@ void SdrTextObj::AdaptTextMinSize() SetObjectItemSet(aSet); } -void SdrTextObj::ImpSetContourPolygon( SdrOutliner& rOutliner, tools::Rectangle& rAnchorRect, bool bLineWidth ) const +void SdrTextObj::ImpSetContourPolygon( SdrOutliner& rOutliner, tools::Rectangle const & rAnchorRect, bool bLineWidth ) const { basegfx::B2DPolyPolygon aXorPolyPolygon(TakeXorPoly()); basegfx::B2DPolyPolygon* pContourPolyPolygon = nullptr; diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index 344faa784c11..46564938682b 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -204,7 +204,7 @@ public: void LayoutTable( tools::Rectangle& rArea, bool bFitWidth, bool bFitHeight ); void ApplyCellStyles(); - void UpdateCells( tools::Rectangle& rArea ); + void UpdateCells( tools::Rectangle const & rArea ); SdrTableObjImpl(); virtual ~SdrTableObjImpl() override; @@ -721,7 +721,7 @@ void SdrTableObjImpl::LayoutTable( tools::Rectangle& rArea, bool bFitWidth, bool } } -void SdrTableObjImpl::UpdateCells( tools::Rectangle& rArea ) +void SdrTableObjImpl::UpdateCells( tools::Rectangle const & rArea ) { if( mpLayouter && mxTable.is() ) { diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index b6f90afaa76d..02e68980aede 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -850,7 +850,7 @@ void TableLayouter::LayoutTable( tools::Rectangle& rRectangle, bool bFitWidth, b } -void TableLayouter::updateCells( tools::Rectangle& rRectangle ) +void TableLayouter::updateCells( tools::Rectangle const & rRectangle ) { const sal_Int32 nColCount = getColumnCount(); const sal_Int32 nRowCount = getRowCount(); diff --git a/svx/source/table/tablelayouter.hxx b/svx/source/table/tablelayouter.hxx index c5f1ca99c367..b664daa505c1 100644 --- a/svx/source/table/tablelayouter.hxx +++ b/svx/source/table/tablelayouter.hxx @@ -89,7 +89,7 @@ public: /** returns the requested borderline in rpBorderLine or a null pointer if there is no border at this edge */ editeng::SvxBorderLine* getBorderLine( sal_Int32 nEdgeX, sal_Int32 nEdgeY, bool bHorizontal )const; - void updateCells( ::tools::Rectangle& rRectangle ); + void updateCells( ::tools::Rectangle const & rRectangle ); sal_Int32 getHorizontalEdge( int nEdgeY, sal_Int32* pnMin, sal_Int32* pnMax ); sal_Int32 getVerticalEdge( int nEdgeX , sal_Int32* pnMin, sal_Int32* pnMax); diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index c817027dedad..abb6cb4fd225 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -174,7 +174,7 @@ private: static Color TestColorsVisible(const Color &FontCol, const Color &BackCol); static void UserDrawEntry(const UserDrawEvent& rUDEvt, const OUString &rStyleName); void SetupEntry(vcl::RenderContext& rRenderContext, vcl::Window* pParent, sal_Int32 nItem, const tools::Rectangle& rRect, const OUString& rStyleName, bool bIsNotSelected); - static bool AdjustFontForItemHeight(OutputDevice* pDevice, tools::Rectangle& rTextRect, long nHeight); + static bool AdjustFontForItemHeight(OutputDevice* pDevice, tools::Rectangle const & rTextRect, long nHeight); void SetOptimalSize(); DECL_LINK( MenuSelectHdl, Menu *, bool ); }; @@ -602,7 +602,7 @@ void SvxStyleBox_Impl::StateChanged( StateChangedType nStateChange ) } } -bool SvxStyleBox_Impl::AdjustFontForItemHeight(OutputDevice* pDevice, tools::Rectangle& rTextRect, long nHeight) +bool SvxStyleBox_Impl::AdjustFontForItemHeight(OutputDevice* pDevice, tools::Rectangle const & rTextRect, long nHeight) { if (rTextRect.Bottom() > nHeight) { diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx index 0222fa709b99..f9a731ef96d1 100644 --- a/sw/inc/fesh.hxx +++ b/sw/inc/fesh.hxx @@ -810,7 +810,7 @@ public: const Point& _rDocPos ); void ToggleHeaderFooterEdit( ); - static void SetLineEnds(SfxItemSet& rAttr, SdrObject& rObj, sal_uInt16 nSlotId); + static void SetLineEnds(SfxItemSet& rAttr, SdrObject const & rObj, sal_uInt16 nSlotId); SAL_DLLPRIVATE void ClearColumnRowCache(SwTabFrame const*); }; diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index b1b897f32d84..4b46fd4df1d6 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -892,7 +892,7 @@ static void lcl_NotifyNeighbours( const SdrMarkList *pLst ) } } -void SwFEShell::SetLineEnds(SfxItemSet& rAttr, SdrObject& rObj, sal_uInt16 nSlotId) +void SwFEShell::SetLineEnds(SfxItemSet& rAttr, SdrObject const & rObj, sal_uInt16 nSlotId) { SdrModel& rModel(rObj.getSdrModelFromSdrObject()); diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx index f322cc9d9cc6..1586d7e5753d 100644 --- a/sw/source/core/layout/trvlfrm.cxx +++ b/sw/source/core/layout/trvlfrm.cxx @@ -1140,7 +1140,7 @@ static sal_uInt64 CalcDiff(const Point &rPt1, const Point &rPt2) * This will suit the purpose that the ContentFrame which lies in the "right" page part will be * accepted instead of one which doesn't lie there although his distance to the point is shorter. */ -static const SwLayoutFrame* lcl_Inside( const SwContentFrame *pCnt, Point& rPt ) +static const SwLayoutFrame* lcl_Inside( const SwContentFrame *pCnt, Point const & rPt ) { const SwLayoutFrame* pUp = pCnt->GetUpper(); while( pUp ) diff --git a/sw/source/ui/fldui/fldtdlg.cxx b/sw/source/ui/fldui/fldtdlg.cxx index 5fd48cec0ada..cfaa6e23f91b 100644 --- a/sw/source/ui/fldui/fldtdlg.cxx +++ b/sw/source/ui/fldui/fldtdlg.cxx @@ -108,7 +108,7 @@ bool SwFieldDlg::Close() return true; } -void SwFieldDlg::Initialize(SfxChildWinInfo *pInfo) +void SwFieldDlg::Initialize(SfxChildWinInfo const *pInfo) { Point aPos; Size aSize; diff --git a/sw/source/ui/table/autoformatpreview.cxx b/sw/source/ui/table/autoformatpreview.cxx index c4e1261c1f90..47447886ba0d 100644 --- a/sw/source/ui/table/autoformatpreview.cxx +++ b/sw/source/ui/table/autoformatpreview.cxx @@ -87,7 +87,7 @@ static void lcl_SetFontProperties(vcl::Font& rFont, const SvxFontItem& rFontItem rCJKFont.MethodName(Value); \ rCTLFont.MethodName(Value); -void AutoFormatPreview::MakeFonts(vcl::RenderContext& rRenderContext, sal_uInt8 nIndex, +void AutoFormatPreview::MakeFonts(vcl::RenderContext const& rRenderContext, sal_uInt8 nIndex, vcl::Font& rFont, vcl::Font& rCJKFont, vcl::Font& rCTLFont) { const SwBoxAutoFormat& rBoxFormat = aCurData.GetBoxFormat(nIndex); diff --git a/sw/source/uibase/inc/autoformatpreview.hxx b/sw/source/uibase/inc/autoformatpreview.hxx index c509a698a227..1b9bd74b1589 100644 --- a/sw/source/uibase/inc/autoformatpreview.hxx +++ b/sw/source/uibase/inc/autoformatpreview.hxx @@ -83,7 +83,7 @@ private: void DrawString(vcl::RenderContext& rRenderContext, size_t nCol, size_t nRow); void DrawBackground(vcl::RenderContext& rRenderContext); - void MakeFonts(vcl::RenderContext& rRenderContext, sal_uInt8 nIndex, vcl::Font& rFont, + void MakeFonts(vcl::RenderContext const& rRenderContext, sal_uInt8 nIndex, vcl::Font& rFont, vcl::Font& rCJKFont, vcl::Font& rCTLFont); }; diff --git a/sw/source/uibase/inc/fldtdlg.hxx b/sw/source/uibase/inc/fldtdlg.hxx index 59972d880000..65552b29c9d3 100644 --- a/sw/source/uibase/inc/fldtdlg.hxx +++ b/sw/source/uibase/inc/fldtdlg.hxx @@ -53,7 +53,7 @@ public: DECL_LINK(OKHdl, Button*, void); DECL_LINK(CancelHdl, Button*, void); - void Initialize(SfxChildWinInfo *pInfo); + void Initialize(SfxChildWinInfo const *pInfo); void ReInitDlg(); void EnableInsert(bool bEnable); void InsertHdl(); diff --git a/test/inc/unoapi_property_testers.hxx b/test/inc/unoapi_property_testers.hxx index 616ab3bc0cb5..fce19763e21f 100644 --- a/test/inc/unoapi_property_testers.hxx +++ b/test/inc/unoapi_property_testers.hxx @@ -24,7 +24,7 @@ namespace apitest * @param name Name of property to test. */ void OOO_DLLPUBLIC_TEST testBooleanProperty( - css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name); + css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name); /** @brief Tester for read-only property type 'boolean' of a @see com::sun::star::beans::XPropertySet. * @@ -32,7 +32,7 @@ void OOO_DLLPUBLIC_TEST testBooleanProperty( * @param name Name of property to test. */ void OOO_DLLPUBLIC_TEST testBooleanReadonlyProperty( - css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name); + css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name); /** @brief Tester for property type 'double' of a @see com::sun::star::beans::XPropertySet. * @@ -41,7 +41,7 @@ void OOO_DLLPUBLIC_TEST testBooleanReadonlyProperty( * @param nValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testDoubleProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, +testDoubleProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const double& dValue = 42.0); /** @brief Tester for read-only property type 'double' of a @see com::sun::star::beans::XPropertySet. @@ -51,7 +51,7 @@ testDoubleProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, * @param nValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, +testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const double& dValue = 42.0); /** @brief Tester for property type 'long' of a @see com::sun::star::beans::XPropertySet. @@ -61,8 +61,8 @@ testDoubleReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPrope * @param nValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testLongProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name, - const sal_Int32& nValue = 42); +testLongProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, + const OUString& name, const sal_Int32& nValue = 42); /** @brief Tester for read-only property type 'long' of a @see com::sun::star::beans::XPropertySet. * @@ -71,7 +71,7 @@ testLongProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, co * @param nValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, +testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int32& nValue = 42); /** @brief Tester for property type 'short' of a @see com::sun::star::beans::XPropertySet. @@ -81,8 +81,8 @@ testLongReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropert * @param nValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, const OUString& name, - const sal_Int16& nValue = 42); +testShortProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, + const OUString& name, const sal_Int16& nValue = 42); /** @brief Tester for read-only property type 'short' of a @see com::sun::star::beans::XPropertySet. * @@ -91,7 +91,7 @@ testShortProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, c * @param nValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, +testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int16& nValue = 42); /** @brief Tester for property type 'string' of a @see com::sun::star::beans::XPropertySet. @@ -101,7 +101,7 @@ testShortReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xProper * @param rValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testStringProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, +testStringProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const OUString& rValue); /** @brief Tester for read-only property type 'string' of a @see com::sun::star::beans::XPropertySet. @@ -111,7 +111,7 @@ testStringProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, * @param rValue Value to use when setting a new value. */ void OOO_DLLPUBLIC_TEST -testStringReadonlyProperty(css::uno::Reference<css::beans::XPropertySet>& xPropertySet, +testStringReadonlyProperty(css::uno::Reference<css::beans::XPropertySet> const& xPropertySet, const OUString& name, const OUString& rValue); } // namespace apitest #endif // INCLUDED_TEST_INC_UNOAPIPROPERTYTESTERS_HXX diff --git a/test/source/unoapi_property_testers.cxx b/test/source/unoapi_property_testers.cxx index 67589367ad99..b54bd396cc30 100644 --- a/test/source/unoapi_property_testers.cxx +++ b/test/source/unoapi_property_testers.cxx @@ -20,7 +20,8 @@ using namespace com::sun::star::uno; namespace apitest { -void testBooleanProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name) +void testBooleanProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, + const OUString& name) { uno::Any aNewValue; @@ -39,7 +40,7 @@ void testBooleanProperty(uno::Reference<beans::XPropertySet>& xPropertySet, cons CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), !bPropertyGet, bPropertySet); } -void testBooleanReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet, +void testBooleanReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name) { uno::Any aNewValue; @@ -58,8 +59,8 @@ void testBooleanReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertyS CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), bPropertyGet, bPropertySet); } -void testDoubleProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name, - const double& dValue) +void testDoubleProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, + const OUString& name, const double& dValue) { uno::Any aNewValue; @@ -78,7 +79,7 @@ void testDoubleProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(msgSet.getStr(), dValue, dPropertySet, 0.5); } -void testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet, +void testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name, const double& dValue) { uno::Any aNewValue; @@ -97,7 +98,7 @@ void testDoubleReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySe CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(msgSet.getStr(), dPropertyGet, dPropertySet, 0.5); } -void testLongProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name, +void testLongProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int32& nValue) { uno::Any aNewValue; @@ -117,7 +118,7 @@ void testLongProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const O CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nValue, nPropertySet); } -void testLongReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet, +void testLongReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int32& nValue) { uno::Any aNewValue; @@ -136,8 +137,8 @@ void testLongReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet, CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nPropertyGet, nPropertySet); } -void testShortProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name, - const sal_Int16& nValue) +void testShortProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, + const OUString& name, const sal_Int16& nValue) { uno::Any aNewValue; @@ -156,7 +157,7 @@ void testShortProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nValue, nPropertySet); } -void testShortReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet, +void testShortReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name, const sal_Int16& nValue) { uno::Any aNewValue; @@ -175,8 +176,8 @@ void testShortReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), nPropertyGet, nPropertySet); } -void testStringProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const OUString& name, - const OUString& rValue) +void testStringProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, + const OUString& name, const OUString& rValue) { uno::Any aNewValue; @@ -195,7 +196,7 @@ void testStringProperty(uno::Reference<beans::XPropertySet>& xPropertySet, const CPPUNIT_ASSERT_EQUAL_MESSAGE(msgSet.getStr(), rValue, sPropertySet); } -void testStringReadonlyProperty(uno::Reference<beans::XPropertySet>& xPropertySet, +void testStringReadonlyProperty(uno::Reference<beans::XPropertySet> const& xPropertySet, const OUString& name, const OUString& rValue) { uno::Any aNewValue; diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx index 39755708942c..a2a4b0723b58 100644 --- a/uui/source/iahndl-errorhandler.cxx +++ b/uui/source/iahndl-errorhandler.cxx @@ -54,7 +54,7 @@ enum class MessageBoxStyle { DialogMask executeErrorDialog( - vcl::Window * pParent, + vcl::Window const * pParent, task::InteractionClassification eClassification, OUString const & rContext, OUString const & rMessage, diff --git a/vcl/backendtest/outputdevice/line.cxx b/vcl/backendtest/outputdevice/line.cxx index 5b06e85826b8..59a2294bfa38 100644 --- a/vcl/backendtest/outputdevice/line.cxx +++ b/vcl/backendtest/outputdevice/line.cxx @@ -16,7 +16,7 @@ namespace test { namespace { -void drawLineOffset(OutputDevice& rDevice, tools::Rectangle& rRect, int nOffset) +void drawLineOffset(OutputDevice& rDevice, tools::Rectangle const & rRect, int nOffset) { Point aLeftTop (rRect.Left() + nOffset, rRect.Top() + nOffset); Point aRightTop (rRect.Right() - nOffset, rRect.Top() + nOffset); diff --git a/vcl/backendtest/outputdevice/polygon.cxx b/vcl/backendtest/outputdevice/polygon.cxx index dd3da404daf3..785bc5dab72c 100644 --- a/vcl/backendtest/outputdevice/polygon.cxx +++ b/vcl/backendtest/outputdevice/polygon.cxx @@ -16,7 +16,7 @@ namespace test { namespace { -void drawPolygonOffset(OutputDevice& rDevice, tools::Rectangle& rRect, int nOffset) +void drawPolygonOffset(OutputDevice& rDevice, tools::Rectangle const & rRect, int nOffset) { tools::Polygon aPolygon(4); aPolygon.SetPoint(Point(rRect.Left() + nOffset, rRect.Top() + nOffset), 0); diff --git a/vcl/backendtest/outputdevice/polyline.cxx b/vcl/backendtest/outputdevice/polyline.cxx index 404cf3a53500..49894a1a2186 100644 --- a/vcl/backendtest/outputdevice/polyline.cxx +++ b/vcl/backendtest/outputdevice/polyline.cxx @@ -16,7 +16,7 @@ namespace test { namespace { -void drawPolyLineOffset(OutputDevice& rDevice, tools::Rectangle& rRect, int nOffset) +void drawPolyLineOffset(OutputDevice& rDevice, tools::Rectangle const & rRect, int nOffset) { tools::Polygon aPolygon(4); aPolygon.SetPoint(Point(rRect.Left() + nOffset, rRect.Top() + nOffset), 0); diff --git a/vcl/backendtest/outputdevice/polypolygon.cxx b/vcl/backendtest/outputdevice/polypolygon.cxx index d01465251d7c..10ebc85e2d62 100644 --- a/vcl/backendtest/outputdevice/polypolygon.cxx +++ b/vcl/backendtest/outputdevice/polypolygon.cxx @@ -17,7 +17,7 @@ namespace test { namespace { -tools::Polygon createPolygonOffset(tools::Rectangle& rRect, int nOffset) +tools::Polygon createPolygonOffset(tools::Rectangle const & rRect, int nOffset) { tools::Polygon aPolygon(4); aPolygon.SetPoint(Point(rRect.Left() + nOffset, rRect.Top() + nOffset), 0); diff --git a/vcl/backendtest/outputdevice/rectangle.cxx b/vcl/backendtest/outputdevice/rectangle.cxx index 5daffc6c0fdf..199c299b2b2d 100644 --- a/vcl/backendtest/outputdevice/rectangle.cxx +++ b/vcl/backendtest/outputdevice/rectangle.cxx @@ -15,7 +15,7 @@ namespace test { namespace { - void drawRectOffset(OutputDevice& rDevice, tools::Rectangle& rRect, int nOffset) + void drawRectOffset(OutputDevice& rDevice, tools::Rectangle const & rRect, int nOffset) { rDevice.DrawRect(tools::Rectangle(rRect.Left() + nOffset, rRect.Top() + nOffset, rRect.Right() - nOffset, rRect.Bottom() - nOffset)); diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index a24f786a5b86..814f9feed6f5 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -44,7 +44,7 @@ private: BitmapChecksum mnID4; public: - GraphicID(ImpGraphic& rGraphic); + GraphicID(ImpGraphic const & rGraphic); bool operator==(const GraphicID& rID) const { diff --git a/vcl/inc/unx/gtk/gtkframe.hxx b/vcl/inc/unx/gtk/gtkframe.hxx index 3db18f03fbcf..0940736738fa 100644 --- a/vcl/inc/unx/gtk/gtkframe.hxx +++ b/vcl/inc/unx/gtk/gtkframe.hxx @@ -341,7 +341,7 @@ class GtkSalFrame : public SalFrame enum class SetType { RetainSize, Fullscreen, UnFullscreen }; - void SetScreen( unsigned int nNewScreen, SetType eType, tools::Rectangle *pSize = nullptr ); + void SetScreen( unsigned int nNewScreen, SetType eType, tools::Rectangle const *pSize = nullptr ); public: #if GTK_CHECK_VERSION(3,0,0) diff --git a/vcl/source/bitmap/BitmapTools.cxx b/vcl/source/bitmap/BitmapTools.cxx index 6d3b0af31015..c21d5fd2a369 100644 --- a/vcl/source/bitmap/BitmapTools.cxx +++ b/vcl/source/bitmap/BitmapTools.cxx @@ -724,7 +724,7 @@ static bool readAlpha( BitmapReadAccess const * pAlphaReadAcc, long nY, const lo * @param data will be filled with alpha data, if xBitmap is alpha/transparent image * @param bHasAlpha will be set to true if resulting surface has alpha **/ -void CanvasCairoExtractBitmapData( BitmapEx & aBmpEx, Bitmap & aBitmap, unsigned char*& data, bool& bHasAlpha, long& rnWidth, long& rnHeight ) +void CanvasCairoExtractBitmapData( BitmapEx const & aBmpEx, Bitmap & aBitmap, unsigned char*& data, bool& bHasAlpha, long& rnWidth, long& rnHeight ) { AlphaMask aAlpha = aBmpEx.GetAlpha(); @@ -944,7 +944,7 @@ void CanvasCairoExtractBitmapData( BitmapEx & aBmpEx, Bitmap & aBitmap, unsigned } - uno::Sequence< sal_Int8 > CanvasExtractBitmapData(BitmapEx & rBitmapEx, const geometry::IntegerRectangle2D& rect) + uno::Sequence< sal_Int8 > CanvasExtractBitmapData(BitmapEx const & rBitmapEx, const geometry::IntegerRectangle2D& rect) { Bitmap aBitmap( rBitmapEx.GetBitmap() ); Bitmap aAlpha( rBitmapEx.GetAlpha().GetBitmap() ); diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index a4f06757c2ea..13f08e464724 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -760,7 +760,7 @@ void TabControl::ImplShowFocus() ShowFocus( aRect ); } -void TabControl::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem* pItem, const tools::Rectangle& rCurRect, +void TabControl::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplTabItem const * pItem, const tools::Rectangle& rCurRect, bool bFirstInGroup, bool bLastInGroup ) { if (pItem->maRect.IsEmpty()) diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx index 06700e436c5d..7955c5608b84 100644 --- a/vcl/source/gdi/gdimtf.cxx +++ b/vcl/source/gdi/gdimtf.cxx @@ -2609,7 +2609,7 @@ namespace ImplMetaReadData& m_rData; rtl_TextEncoding m_eOrigCharSet; public: - DepthGuard(ImplMetaReadData& rData, SvStream& rIStm) + DepthGuard(ImplMetaReadData& rData, SvStream const & rIStm) : m_rData(rData) , m_eOrigCharSet(m_rData.meActualCharSet) { diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 0f1e849183de..c4ef749ec6da 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -101,7 +101,7 @@ Size GraphicReader::GetPreviewSize() const return aSize; } -GraphicID::GraphicID(ImpGraphic & rGraphic) +GraphicID::GraphicID(ImpGraphic const & rGraphic) { mnID1 = static_cast<sal_uLong>(rGraphic.ImplGetType()) << 28; mnID2 = mnID3 = mnID4 = 0; diff --git a/vcl/source/outdev/bitmap.cxx b/vcl/source/outdev/bitmap.cxx index eb0093d164cd..a9d2215f7791 100644 --- a/vcl/source/outdev/bitmap.cxx +++ b/vcl/source/outdev/bitmap.cxx @@ -720,8 +720,8 @@ struct LinearScaleContext std::unique_ptr<long[]> mpMapXOffset; std::unique_ptr<long[]> mpMapYOffset; - LinearScaleContext(tools::Rectangle const & aDstRect, tools::Rectangle& aBitmapRect, - Size& aOutSize, long nOffX, long nOffY) + LinearScaleContext(tools::Rectangle const & aDstRect, tools::Rectangle const & aBitmapRect, + Size const & aOutSize, long nOffX, long nOffY) : mpMapX(new long[aDstRect.GetWidth()]) , mpMapY(new long[aDstRect.GetHeight()]) @@ -884,8 +884,8 @@ struct TradScaleContext std::unique_ptr<long[]> mpMapX; std::unique_ptr<long[]> mpMapY; - TradScaleContext(tools::Rectangle const & aDstRect, tools::Rectangle& aBitmapRect, - Size& aOutSize, long nOffX, long nOffY) + TradScaleContext(tools::Rectangle const & aDstRect, tools::Rectangle const & aBitmapRect, + Size const & aOutSize, long nOffX, long nOffY) : mpMapX(new long[aDstRect.GetWidth()]) , mpMapY(new long[aDstRect.GetHeight()]) @@ -927,7 +927,8 @@ private: } // end anonymous namespace -void OutputDevice::DrawDeviceAlphaBitmapSlowPath(const Bitmap& rBitmap, const AlphaMask& rAlpha, tools::Rectangle aDstRect, tools::Rectangle aBmpRect, Size& aOutSize, Point& aOutPoint) +void OutputDevice::DrawDeviceAlphaBitmapSlowPath(const Bitmap& rBitmap, + const AlphaMask& rAlpha, tools::Rectangle aDstRect, tools::Rectangle aBmpRect, Size const & aOutSize, Point const & aOutPoint) { assert(!is_double_buffered_window()); diff --git a/vcl/unx/gtk/gtksalframe.cxx b/vcl/unx/gtk/gtksalframe.cxx index d95fa6ec60ac..78bfae5559e4 100644 --- a/vcl/unx/gtk/gtksalframe.cxx +++ b/vcl/unx/gtk/gtksalframe.cxx @@ -1816,7 +1816,7 @@ bool GtkSalFrame::GetWindowState( SalFrameState* pState ) return true; } -void GtkSalFrame::SetScreen( unsigned int nNewScreen, SetType eType, tools::Rectangle *pSize ) +void GtkSalFrame::SetScreen( unsigned int nNewScreen, SetType eType, tools::Rectangle const *pSize ) { if( !m_pWindow ) return; diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 4ba26b017ed4..63ac768836ed 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -1827,7 +1827,7 @@ bool GtkSalFrame::GetWindowState( SalFrameState* pState ) return true; } -void GtkSalFrame::SetScreen( unsigned int nNewScreen, SetType eType, tools::Rectangle *pSize ) +void GtkSalFrame::SetScreen( unsigned int nNewScreen, SetType eType, tools::Rectangle const *pSize ) { if( !m_pWindow ) return; diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index d0825e0ec275..371c16181d18 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -441,7 +441,7 @@ static void lcl_copyFlatten(RTFReferenceProperties& rProps, RTFSprms& rStyleAttr } writerfilter::Reference<Properties>::Pointer_t -RTFDocumentImpl::getProperties(RTFSprms& rAttributes, RTFSprms& rSprms, Id nStyleType) +RTFDocumentImpl::getProperties(RTFSprms& rAttributes, RTFSprms const& rSprms, Id nStyleType) { RTFSprms aSprms(rSprms); RTFValue::Pointer_t pAbstractList; diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.hxx b/writerfilter/source/rtftok/rtfdocumentimpl.hxx index cf099a9817fc..b5386a30181b 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.hxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.hxx @@ -498,8 +498,8 @@ private: void runBreak(); void parBreak(); void tableBreak(); - writerfilter::Reference<Properties>::Pointer_t getProperties(RTFSprms& rAttributes, - RTFSprms& rSprms, Id nStyleType); + writerfilter::Reference<Properties>::Pointer_t + getProperties(RTFSprms& rAttributes, RTFSprms const& rSprms, Id nStyleType); void checkNeedPap(); void sectBreak(bool bFinal = false); void prepareProperties(RTFParserState& rState, |