diff options
59 files changed, 95 insertions, 95 deletions
diff --git a/chart2/source/controller/dialogs/TitleDialogData.cxx b/chart2/source/controller/dialogs/TitleDialogData.cxx index 7f48d90a0b24..4a5167c31073 100644 --- a/chart2/source/controller/dialogs/TitleDialogData.cxx +++ b/chart2/source/controller/dialogs/TitleDialogData.cxx @@ -73,7 +73,7 @@ void TitleDialogData::readFromModel( const rtl::Reference<::chart::ChartModel>& bool TitleDialogData::writeDifferenceToModel( const rtl::Reference<::chart::ChartModel>& xChartModel , const uno::Reference< uno::XComponentContext >& xContext - , TitleDialogData* pOldState ) + , const TitleDialogData* pOldState ) { bool bChanged = false; for( sal_Int32 nN = static_cast< sal_Int32 >( TitleHelper::TITLE_BEGIN ); diff --git a/chart2/source/controller/inc/TitleDialogData.hxx b/chart2/source/controller/inc/TitleDialogData.hxx index 5f398f34a1f0..70b03c8a6565 100644 --- a/chart2/source/controller/inc/TitleDialogData.hxx +++ b/chart2/source/controller/inc/TitleDialogData.hxx @@ -45,7 +45,7 @@ struct TitleDialogData */ bool writeDifferenceToModel( const rtl::Reference<::chart::ChartModel>& xChartModel , const css::uno::Reference< css::uno::XComponentContext >& xContext - , TitleDialogData* pOldState=nullptr ); + , const TitleDialogData* pOldState=nullptr ); }; } //namespace chart diff --git a/chart2/source/inc/CommonConverters.hxx b/chart2/source/inc/CommonConverters.hxx index 0e49b79dca1d..7e8a1b86834a 100644 --- a/chart2/source/inc/CommonConverters.hxx +++ b/chart2/source/inc/CommonConverters.hxx @@ -133,7 +133,7 @@ basegfx::B2DPolyPolygon PolyToB2DPolyPolygon( */ OOO_DLLPUBLIC_CHARTTOOLS void appendPointSequence( css::drawing::PointSequenceSequence& rTarget - , css::drawing::PointSequenceSequence& rAdd ); + , const css::drawing::PointSequenceSequence& rAdd ); /** Position3D + Direction3D == Position3D */ diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx index 20a3346f69b0..d61a635d425d 100644 --- a/chart2/source/tools/CommonConverters.cxx +++ b/chart2/source/tools/CommonConverters.cxx @@ -419,7 +419,7 @@ basegfx::B2DPolyPolygon PolyToB2DPolyPolygon( } void appendPointSequence( drawing::PointSequenceSequence& rTarget - , drawing::PointSequenceSequence& rAdd ) + , const drawing::PointSequenceSequence& rAdd ) { sal_Int32 nAddCount = rAdd.getLength(); if(!nAddCount) diff --git a/chart2/source/view/charttypes/BarChart.cxx b/chart2/source/view/charttypes/BarChart.cxx index 817a29fd06ec..5931487ecc88 100644 --- a/chart2/source/view/charttypes/BarChart.cxx +++ b/chart2/source/view/charttypes/BarChart.cxx @@ -563,10 +563,10 @@ void BarChart::doZSlot( bool& bDrawConnectionLines, bool& bDrawConnectionLinesInited, const std::vector< VDataSeriesGroup >& rZSlot, const sal_Int32 nZ, const sal_Int32 nPointIndex, const sal_Int32 nStartIndex, - rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, - rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, std::unordered_set<rtl::Reference<SvxShape>>& aShapeSet, std::map< VDataSeries*, FormerBarPoint >& aSeriesFormerPointMap, std::map< sal_Int32, double >& aLogicYSumMap) @@ -638,10 +638,10 @@ void BarChart::doXSlot( const VDataSeriesGroup& rXSlot, bool& bDrawConnectionLines, bool& bDrawConnectionLinesInited, const sal_Int32 nZ, const sal_Int32 nPointIndex, const sal_Int32 nStartIndex, - rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, - rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, std::unordered_set<rtl::Reference<SvxShape>>& aShapeSet, std::map< VDataSeries*, FormerBarPoint >& aSeriesFormerPointMap, std::map< sal_Int32, double >& aLogicYSumMap, diff --git a/chart2/source/view/charttypes/BarChart.hxx b/chart2/source/view/charttypes/BarChart.hxx index badb65822837..52c3b6177765 100644 --- a/chart2/source/view/charttypes/BarChart.hxx +++ b/chart2/source/view/charttypes/BarChart.hxx @@ -84,10 +84,10 @@ private: //methods void doZSlot( bool& bDrawConnectionLines, bool& bDrawConnectionLinesInited, const std::vector< VDataSeriesGroup >& rZSlot, sal_Int32 nZ, sal_Int32 nPointIndex, sal_Int32 nStartIndex, - rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, - rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, std::unordered_set<rtl::Reference<SvxShape>>& aShapeSet, std::map< VDataSeries*, FormerBarPoint >& aSeriesFormerPointMap, std::map< sal_Int32, double >& aLogicYSumMap); @@ -96,10 +96,10 @@ private: //methods const VDataSeriesGroup& rXSlot, bool& bDrawConnectionLines, bool& bDrawConnectionLinesInited, sal_Int32 nZ, sal_Int32 nPointIndex, sal_Int32 nStartIndex, - rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, - rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, - rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xSeriesTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xRegressionCurveEquationTarget, + const rtl::Reference<SvxShapeGroupAnyD>& xTextTarget, std::unordered_set<rtl::Reference<SvxShape>>& aShapeSet, std::map< VDataSeries*, FormerBarPoint >& aSeriesFormerPointMap, std::map< sal_Int32, double >& aLogicYSumMap, diff --git a/chart2/source/view/charttypes/NetChart.cxx b/chart2/source/view/charttypes/NetChart.cxx index 1e23ad7f6ce9..098864ac0db4 100644 --- a/chart2/source/view/charttypes/NetChart.cxx +++ b/chart2/source/view/charttypes/NetChart.cxx @@ -112,7 +112,7 @@ drawing::Direction3D NetChart::getPreferredDiagramAspectRatio() const } bool NetChart::impl_createLine( VDataSeries* pSeries - , std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly + , const std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly , PlottingPositionHelper const * pPosHelper ) { //return true if a line was created successfully @@ -164,7 +164,7 @@ bool NetChart::impl_createLine( VDataSeries* pSeries } bool NetChart::impl_createArea( VDataSeries* pSeries - , std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly + , const std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly , std::vector<std::vector<css::drawing::Position3D>> const * pPreviousSeriesPoly , PlottingPositionHelper const * pPosHelper ) { diff --git a/chart2/source/view/charttypes/NetChart.hxx b/chart2/source/view/charttypes/NetChart.hxx index 42d06570e9f2..a536daf15fd2 100644 --- a/chart2/source/view/charttypes/NetChart.hxx +++ b/chart2/source/view/charttypes/NetChart.hxx @@ -53,11 +53,11 @@ public: private: //methods void impl_createSeriesShapes(); bool impl_createArea( VDataSeries* pSeries - , std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly + , const std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly , std::vector<std::vector<css::drawing::Position3D>> const * pPreviousSeriesPoly , PlottingPositionHelper const * pPosHelper ); bool impl_createLine( VDataSeries* pSeries - , std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly + , const std::vector<std::vector<css::drawing::Position3D>>* pSeriesPoly , PlottingPositionHelper const * pPosHelper ); private: //member diff --git a/chart2/source/view/inc/ShapeFactory.hxx b/chart2/source/view/inc/ShapeFactory.hxx index 86ae5411d086..89991afaf1b0 100644 --- a/chart2/source/view/inc/ShapeFactory.hxx +++ b/chart2/source/view/inc/ShapeFactory.hxx @@ -203,7 +203,7 @@ public: static rtl::Reference<SvxShapeText> createText(const rtl::Reference<SvxShapeGroupAnyD>& xTarget - , css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > >& xFormattedString + , const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > >& xFormattedString , const tNameSequence& rPropNames , const tAnySequence& rPropValues , const css::uno::Any& rATransformation); @@ -255,7 +255,7 @@ public: static OUString getStackedString( const OUString& rString, bool bStacked ); static bool hasPolygonAnyLines( const std::vector<std::vector<css::drawing::Position3D>>& rPoly ); - static bool isPolygonEmptyOrSinglePoint( css::drawing::PolyPolygonShape3D& rPoly ); + static bool isPolygonEmptyOrSinglePoint( const css::drawing::PolyPolygonShape3D& rPoly ); static bool isPolygonEmptyOrSinglePoint( const std::vector<std::vector<css::drawing::Position3D>>& rPoly ); static void closePolygon( css::drawing::PolyPolygonShape3D& rPoly ); static void closePolygon( std::vector<std::vector<css::drawing::Position3D>>& rPoly ); diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx index 1d8fce7bed9a..f0d4b8f160e5 100644 --- a/chart2/source/view/main/ChartView.cxx +++ b/chart2/source/view/main/ChartView.cxx @@ -2320,7 +2320,7 @@ void formatPage( } } -void lcl_removeEmptyGroupShapes( SdrObject& rParent ) +void lcl_removeEmptyGroupShapes( const SdrObject& rParent ) { SdrObjList* pObjList = rParent.getChildrenOfSdrObject(); if (!pObjList || pObjList->GetObjCount() == 0) diff --git a/chart2/source/view/main/ShapeFactory.cxx b/chart2/source/view/main/ShapeFactory.cxx index d966bbd17cc5..889dbf389d43 100644 --- a/chart2/source/view/main/ShapeFactory.cxx +++ b/chart2/source/view/main/ShapeFactory.cxx @@ -2074,7 +2074,7 @@ rtl::Reference<SvxShapeText> rtl::Reference<SvxShapeText> ShapeFactory::createText( const rtl::Reference<SvxShapeGroupAnyD>& xTarget - , uno::Sequence< uno::Reference< chart2::XFormattedString > >& xFormattedString + , const uno::Sequence< uno::Reference< chart2::XFormattedString > >& xFormattedString , const tNameSequence& rPropNames , const tAnySequence& rPropValues , const uno::Any& rATransformation ) @@ -2418,7 +2418,7 @@ bool ShapeFactory::hasPolygonAnyLines( const std::vector<std::vector<css::drawin return false; } -bool ShapeFactory::isPolygonEmptyOrSinglePoint( drawing::PolyPolygonShape3D& rPoly) +bool ShapeFactory::isPolygonEmptyOrSinglePoint( const drawing::PolyPolygonShape3D& rPoly) { // true, if empty polypolygon or one polygon with one point return !rPoly.SequenceX.hasElements() || diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx index 0ea6c5400fb3..af206a1e1c2b 100644 --- a/dbaccess/source/ui/browser/unodatbr.cxx +++ b/dbaccess/source/ui/browser/unodatbr.cxx @@ -2120,7 +2120,7 @@ void SbaTableQueryBrowser::populateTree(const Reference<XNameAccess>& _xNameAcce rTreeView.make_sorted(); } -std::unique_ptr<weld::TreeIter> SbaTableQueryBrowser::implAppendEntry(const weld::TreeIter* pParent, const OUString& rName, DBTreeListUserData* pUserData) +std::unique_ptr<weld::TreeIter> SbaTableQueryBrowser::implAppendEntry(const weld::TreeIter* pParent, const OUString& rName, const DBTreeListUserData* pUserData) { EntryType eEntryType = pUserData->eType; diff --git a/dbaccess/source/ui/inc/unodatbr.hxx b/dbaccess/source/ui/inc/unodatbr.hxx index efe4ae51b27c..4bb5c26c74a5 100644 --- a/dbaccess/source/ui/inc/unodatbr.hxx +++ b/dbaccess/source/ui/inc/unodatbr.hxx @@ -356,7 +356,7 @@ namespace dbaui std::unique_ptr<weld::TreeIter> implAppendEntry( const weld::TreeIter* pParent, const OUString& rName, - DBTreeListUserData* pUserData); + const DBTreeListUserData* pUserData); /// loads the grid control with the data object specified (which may be a table, a query or a command) bool implLoadAnything(const OUString& _rDataSourceName, const OUString& _rCommand, diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx index e97075d0ea9a..d86f84c44960 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.cxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.cxx @@ -496,7 +496,7 @@ IMPL_LINK(UpdateDialog, entryToggled, const weld::TreeView::iter_col&, rRowCol, enableOk(); } -void UpdateDialog::insertItem(UpdateDialog::Index *pEntry, bool bEnabledCheckBox) +void UpdateDialog::insertItem(const UpdateDialog::Index *pEntry, bool bEnabledCheckBox) { int nEntry = m_xUpdates->n_children(); m_xUpdates->append(); @@ -505,7 +505,7 @@ void UpdateDialog::insertItem(UpdateDialog::Index *pEntry, bool bEnabledCheckBox m_xUpdates->set_id(nEntry, weld::toId(pEntry)); } -void UpdateDialog::addAdditional(UpdateDialog::Index * index, bool bEnabledCheckBox) +void UpdateDialog::addAdditional(const UpdateDialog::Index * index, bool bEnabledCheckBox) { m_xAll->set_sensitive(true); if (m_xAll->get_active()) diff --git a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx index 24728467debb..cbf376955d22 100644 --- a/desktop/source/deployment/gui/dp_gui_updatedialog.hxx +++ b/desktop/source/deployment/gui/dp_gui_updatedialog.hxx @@ -96,8 +96,8 @@ private: friend class CheckListBox; - void insertItem(UpdateDialog::Index *pIndex, bool bEnableCheckBox); - void addAdditional(UpdateDialog::Index *pIndex, bool bEnableCheckBox); + void insertItem(const UpdateDialog::Index *pIndex, bool bEnableCheckBox); + void addAdditional(const UpdateDialog::Index *pIndex, bool bEnableCheckBox); bool isIgnoredUpdate( UpdateDialog::Index *pIndex ); void addEnabledUpdate( OUString const & name, dp_gui::UpdateData const & data ); diff --git a/framework/source/uiconfiguration/CommandImageResolver.cxx b/framework/source/uiconfiguration/CommandImageResolver.cxx index b57d17eb1ab5..a431ae320b35 100644 --- a/framework/source/uiconfiguration/CommandImageResolver.cxx +++ b/framework/source/uiconfiguration/CommandImageResolver.cxx @@ -70,7 +70,7 @@ CommandImageResolver::~CommandImageResolver() { } -void CommandImageResolver::registerCommands(Sequence<OUString>& aCommandSequence) +void CommandImageResolver::registerCommands(const Sequence<OUString>& aCommandSequence) { sal_Int32 nSequenceSize = aCommandSequence.getLength(); diff --git a/framework/source/uiconfiguration/CommandImageResolver.hxx b/framework/source/uiconfiguration/CommandImageResolver.hxx index 073d5f345248..0622caf332bb 100644 --- a/framework/source/uiconfiguration/CommandImageResolver.hxx +++ b/framework/source/uiconfiguration/CommandImageResolver.hxx @@ -40,7 +40,7 @@ public: CommandImageResolver(); ~CommandImageResolver(); - void registerCommands(css::uno::Sequence<OUString>& aCommandSequence); + void registerCommands(const css::uno::Sequence<OUString>& aCommandSequence); Image getImageFromCommandURL(ImageType nImageType, const OUString& rCommandURL); std::vector<OUString>& getCommandNames() { return m_aImageCommandNameVector; } diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index d3fd710954a5..dc2a06a78b56 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -253,7 +253,7 @@ public: void propagateDiagramHelper(); // for Writer it is necessary to migrate an existing helper to a new Shape - void migrateDiagramHelperToNewShape(ShapePtr& pTarget); + void migrateDiagramHelperToNewShape(const ShapePtr& pTarget); protected: diff --git a/include/sfx2/dispatch.hxx b/include/sfx2/dispatch.hxx index 7b5e3611546e..3bfd3eab4074 100644 --- a/include/sfx2/dispatch.hxx +++ b/include/sfx2/dispatch.hxx @@ -171,7 +171,7 @@ public: SAL_DLLPRIVATE void DoDeactivate_Impl( bool bMDI, SfxViewFrame const * pNew ); SAL_DLLPRIVATE void InvalidateBindings_Impl(bool); - static boost::property_tree::ptree fillPopupMenu(css::uno::Reference<css::awt::XPopupMenu>& rMenu); + static boost::property_tree::ptree fillPopupMenu(const css::uno::Reference<css::awt::XPopupMenu>& rMenu); }; #endif diff --git a/include/svx/ColorSets.hxx b/include/svx/ColorSets.hxx index ac9008cbeb32..07e24ee9302b 100644 --- a/include/svx/ColorSets.hxx +++ b/include/svx/ColorSets.hxx @@ -91,7 +91,7 @@ public: static std::unique_ptr<Theme> FromAny(const css::uno::Any& rVal); - void UpdateSdrPage(SdrPage* pPage); + void UpdateSdrPage(const SdrPage* pPage); std::vector<Color> GetColors() const; }; diff --git a/include/svx/svdoedge.hxx b/include/svx/svdoedge.hxx index 455d72f74014..6e3acb339797 100644 --- a/include/svx/svdoedge.hxx +++ b/include/svx/svdoedge.hxx @@ -290,7 +290,7 @@ public: // helper method for SdrDragMethod::AddConnectorOverlays. Adds an overlay polygon for // this connector to rResult. - basegfx::B2DPolygon ImplAddConnectorOverlay(SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const; + basegfx::B2DPolygon ImplAddConnectorOverlay(const SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const; }; // The following item parameters of the SdrItemPool are used to diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx index a6cf4b497212..c4116616e43a 100644 --- a/include/svx/svdundo.hxx +++ b/include/svx/svdundo.hxx @@ -387,7 +387,7 @@ private: void Do(::std::vector<sal_Int32> & rSortOrder); public: - SdrUndoSort(SdrPage & rPage, + SdrUndoSort(const SdrPage & rPage, ::std::vector<sal_Int32> const& rSortOrder); virtual void Undo() override; diff --git a/oox/source/drawingml/diagram/diagramhelper.cxx b/oox/source/drawingml/diagram/diagramhelper.cxx index 50ea44c4aeb6..f3792b295f7e 100644 --- a/oox/source/drawingml/diagram/diagramhelper.cxx +++ b/oox/source/drawingml/diagram/diagramhelper.cxx @@ -39,7 +39,7 @@ bool AdvancedDiagramHelper::hasDiagramData() const AdvancedDiagramHelper::AdvancedDiagramHelper( const std::shared_ptr< Diagram >& rDiagramPtr, const std::shared_ptr<::oox::drawingml::Theme>& rTheme, - Shape& rSourceShape) + const Shape& rSourceShape) : IDiagramHelper() , mpDiagramPtr(rDiagramPtr) , mpThemePtr(rTheme) diff --git a/oox/source/drawingml/diagram/diagramhelper.hxx b/oox/source/drawingml/diagram/diagramhelper.hxx index 5f5632c3338a..76dffdb88f5a 100644 --- a/oox/source/drawingml/diagram/diagramhelper.hxx +++ b/oox/source/drawingml/diagram/diagramhelper.hxx @@ -55,7 +55,7 @@ public: AdvancedDiagramHelper( const std::shared_ptr< Diagram >& rDiagramPtr, const std::shared_ptr<::oox::drawingml::Theme>& rTheme, - Shape& rSourceShape); + const Shape& rSourceShape); virtual ~AdvancedDiagramHelper(); // re-create XShapes diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx index 7a01ebddb09e..0192ff8aa3de 100644 --- a/oox/source/drawingml/shape.cxx +++ b/oox/source/drawingml/shape.cxx @@ -236,7 +236,7 @@ void Shape::propagateDiagramHelper() } } -void Shape::migrateDiagramHelperToNewShape(ShapePtr& pTarget) +void Shape::migrateDiagramHelperToNewShape(const ShapePtr& pTarget) { if(!mpDiagramHelper) { diff --git a/oox/source/drawingml/table/predefined-table-styles.cxx b/oox/source/drawingml/table/predefined-table-styles.cxx index 273cf7d68a5a..91eccdfc88a6 100644 --- a/oox/source/drawingml/table/predefined-table-styles.cxx +++ b/oox/source/drawingml/table/predefined-table-styles.cxx @@ -202,7 +202,7 @@ static std::map<OUString, sal_Int32> tokens = { { "", XML_dk1 }, { "Accent5", XML_accent5 }, { "Accent6", XML_accent6 } }; -void setBorderLineType(oox::drawingml::LinePropertiesPtr& pLineProp, sal_Int32 nToken) +void setBorderLineType(const oox::drawingml::LinePropertiesPtr& pLineProp, sal_Int32 nToken) { pLineProp->maLineFill.moFillType.set(nToken); } diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 2617e3c76d1b..a061d1306f99 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -611,7 +611,7 @@ static bool lcl_IsOnAllowlist(OUString const & rShapeType) return std::find(vAllowlist.begin(), vAllowlist.end(), rShapeType) != vAllowlist.end(); } -static bool lcl_GetHandlePosition( sal_Int32 &nValue, const EnhancedCustomShapeParameter &rParam, Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq) +static bool lcl_GetHandlePosition( sal_Int32 &nValue, const EnhancedCustomShapeParameter &rParam, const Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq) { bool bAdj = false; if ( rParam.Value.getValueTypeClass() == TypeClass_DOUBLE ) @@ -647,7 +647,7 @@ static bool lcl_GetHandlePosition( sal_Int32 &nValue, const EnhancedCustomShapeP static void lcl_AnalyzeHandles( const uno::Sequence<beans::PropertyValues> & rHandles, std::vector< std::pair< sal_Int32, sal_Int32> > &rHandlePositionList, - Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq) + const Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq) { for ( const Sequence< PropertyValue >& rPropSeq : rHandles ) { diff --git a/reportdesign/source/ui/dlg/Navigator.cxx b/reportdesign/source/ui/dlg/Navigator.cxx index 64bc04129c54..d6769dec98ff 100644 --- a/reportdesign/source/ui/dlg/Navigator.cxx +++ b/reportdesign/source/ui/dlg/Navigator.cxx @@ -138,7 +138,7 @@ class NavigatorTree : public ::cppu::BaseMutex ::rtl::Reference< comphelper::OPropertyChangeMultiplexer> m_pReportListener; ::rtl::Reference< comphelper::OSelectionChangeMultiplexer> m_pSelectionListener; - void insertEntry(const OUString& rName, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition, UserData* pData, weld::TreeIter& rRet); + void insertEntry(const OUString& rName, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition, const UserData* pData, weld::TreeIter& rRet); void traverseSection(const uno::Reference<report::XSection>& xSection, const weld::TreeIter* pParent, const OUString& rImageId, int nPosition = -1); void traverseFunctions(const uno::Reference< report::XFunctions>& xFunctions, const weld::TreeIter* pParent); @@ -379,7 +379,7 @@ void NavigatorTree::_selectionChanged( const lang::EventObject& aEvent ) } void NavigatorTree::insertEntry(const OUString& rName, const weld::TreeIter* pParent, const OUString& rImageId, - int nPosition, UserData* pData, weld::TreeIter& rRet) + int nPosition, const UserData* pData, weld::TreeIter& rRet) { OUString sId = pData ? weld::toId(pData) : OUString(); m_xTreeView->insert(pParent, nPosition, &rName, &sId, nullptr, nullptr, false, &rRet); diff --git a/sc/inc/Sparkline.hxx b/sc/inc/Sparkline.hxx index 0c5a9deeb774..89e306a984b1 100644 --- a/sc/inc/Sparkline.hxx +++ b/sc/inc/Sparkline.hxx @@ -30,7 +30,7 @@ private: std::shared_ptr<SparklineGroup> m_pSparklineGroup; public: - Sparkline(std::shared_ptr<SparklineGroup>& pSparklineGroup); + Sparkline(const std::shared_ptr<SparklineGroup>& pSparklineGroup); Sparkline(const Sparkline&) = delete; Sparkline& operator=(const Sparkline&) = delete; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 734e2d0dcd75..226583afe567 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -1254,7 +1254,7 @@ public: /** Spaklines */ SC_DLLPUBLIC sc::Sparkline* GetSparkline(ScAddress const & rPosition); - SC_DLLPUBLIC sc::Sparkline* CreateSparkline(ScAddress const & rPosition, std::shared_ptr<sc::SparklineGroup> & pSparklineGroup); + SC_DLLPUBLIC sc::Sparkline* CreateSparkline(ScAddress const & rPosition, const std::shared_ptr<sc::SparklineGroup> & pSparklineGroup); /** Notes **/ SC_DLLPUBLIC ScPostIt* GetNote(const ScAddress& rPos); diff --git a/sc/source/core/data/Sparkline.cxx b/sc/source/core/data/Sparkline.cxx index 301fda820ff2..44d5645030d3 100644 --- a/sc/source/core/data/Sparkline.cxx +++ b/sc/source/core/data/Sparkline.cxx @@ -13,7 +13,7 @@ namespace sc { -Sparkline::Sparkline(std::shared_ptr<SparklineGroup>& pSparklineGroup) +Sparkline::Sparkline(const std::shared_ptr<SparklineGroup>& pSparklineGroup) : m_pSparklineGroup(pSparklineGroup) { } diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 8563fef63d38..d520c0be5a7a 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -5201,7 +5201,7 @@ void ScDocument::GetSelectionFrame( const ScMarkData& rMark, rLineInner.SetValid( SvxBoxInfoItemValidFlags::VERT, ( aFlags.nVert != SC_LINE_DONTCARE ) ); } -static HasAttrFlags OptimizeHasAttrib( HasAttrFlags nMask, ScDocumentPool* pPool ) +static HasAttrFlags OptimizeHasAttrib( HasAttrFlags nMask, const ScDocumentPool* pPool ) { if ( nMask & HasAttrFlags::Rotate ) { @@ -6579,7 +6579,7 @@ sc::Sparkline* ScDocument::GetSparkline(ScAddress const& rPosition) return nullptr; } -sc::Sparkline* ScDocument::CreateSparkline(ScAddress const & rPosition, std::shared_ptr<sc::SparklineGroup> & pSparklineGroup) +sc::Sparkline* ScDocument::CreateSparkline(ScAddress const & rPosition, const std::shared_ptr<sc::SparklineGroup> & pSparklineGroup) { std::unique_ptr<sc::Sparkline> pSparkline(new sc::Sparkline(pSparklineGroup)); sc::Sparkline* pCreated = pSparkline.get(); diff --git a/sc/source/filter/oox/SparklineFragment.cxx b/sc/source/filter/oox/SparklineFragment.cxx index 2a73fb9a81c4..54ef0df3c6ec 100644 --- a/sc/source/filter/oox/SparklineFragment.cxx +++ b/sc/source/filter/oox/SparklineFragment.cxx @@ -57,7 +57,7 @@ namespace } void addColorsToSparklineGroup(sc::SparklineGroup& rSparklineGroup, sal_Int32 nElement, - const AttributeList& rAttribs, ThemeBuffer& rThemeBuffer) + const AttributeList& rAttribs, const ThemeBuffer& rThemeBuffer) { switch (nElement) { diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index 988bf55d2a17..b4117736484e 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -418,7 +418,7 @@ public: tools::Long nDimIndex, ScDPObject* pDPObj); void DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo, OutputDevice* pContentDev, - ScLokRTLContext* pLokRTLContext); + const ScLokRTLContext* pLokRTLContext); using Window::Draw; void Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.cxx b/sc/source/ui/sidebar/CellLineStyleValueSet.cxx index 11eb55723745..d7c9e9b3ced5 100644 --- a/sc/source/ui/sidebar/CellLineStyleValueSet.cxx +++ b/sc/source/ui/sidebar/CellLineStyleValueSet.cxx @@ -71,7 +71,7 @@ void CellLineStyleValueSet::SetSelItem(sal_uInt16 nSel) } } -tools::Long CellLineStyleValueSet::GetMaxTextWidth(vcl::RenderContext* pDev) +tools::Long CellLineStyleValueSet::GetMaxTextWidth(const vcl::RenderContext* pDev) { if (mnMaxTextWidth > 0) return mnMaxTextWidth; diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx index 5ab78f0137ff..79dd08fb3960 100644 --- a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx +++ b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx @@ -38,7 +38,7 @@ public: void SetUnit(const OUString* str); void SetSelItem(sal_uInt16 nSel); - tools::Long GetMaxTextWidth(vcl::RenderContext* pDev); + tools::Long GetMaxTextWidth(const vcl::RenderContext* pDev); virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override; virtual void UserDraw(const UserDrawEvent& rUDEvt) override; }; diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 9b8d5c634b25..3598d5794828 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -2008,7 +2008,7 @@ void ScGridWindow::DrawPagePreview( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, } } -void ScGridWindow::DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo, OutputDevice* pContentDev, ScLokRTLContext* pLokRTLContext) +void ScGridWindow::DrawButtons(SCCOL nX1, SCCOL nX2, const ScTableInfo& rTabInfo, OutputDevice* pContentDev, const ScLokRTLContext* pLokRTLContext) { aComboButton.SetOutputDevice( pContentDev ); diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index b1a7330874f9..c15a2ea09be7 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1009,7 +1009,7 @@ bool SdPageObjsTLV::PageBelongsToCurrentShow(const SdPage* pPage) const void SdPageObjsTLV::AddShapeList ( const SdrObjList& rList, - SdrObject* pShape, + const SdrObject* pShape, const OUString& rsName, const bool bIsExcluded, const weld::TreeIter* pParentEntry) diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx index 1c7892a2fbbb..ea59ed0b58d8 100644 --- a/sd/source/ui/inc/sdtreelb.hxx +++ b/sd/source/ui/inc/sdtreelb.hxx @@ -305,7 +305,7 @@ public: */ void AddShapeList ( const SdrObjList& rList, - SdrObject* pShape, + const SdrObject* pShape, const OUString& rsName, const bool bIsExcluded, const weld::TreeIter* pParentEntry); diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 71f01cd76968..17edf97cc16d 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1801,7 +1801,7 @@ boost::property_tree::ptree fillPopupMenu(Menu* pMenu) } -boost::property_tree::ptree SfxDispatcher::fillPopupMenu(css::uno::Reference<css::awt::XPopupMenu>& rPopupMenu) +boost::property_tree::ptree SfxDispatcher::fillPopupMenu(const css::uno::Reference<css::awt::XPopupMenu>& rPopupMenu) { VCLXMenu* pAwtMenu = comphelper::getFromUnoTunnel<VCLXMenu>(rPopupMenu); PopupMenu* pVCLMenu = static_cast<PopupMenu*>(pAwtMenu->GetMenu()); diff --git a/slideshow/source/engine/opengl/TransitionerImpl.cxx b/slideshow/source/engine/opengl/TransitionerImpl.cxx index fcf859b40d93..6f9e2a26001d 100644 --- a/slideshow/source/engine/opengl/TransitionerImpl.cxx +++ b/slideshow/source/engine/opengl/TransitionerImpl.cxx @@ -176,7 +176,7 @@ protected: void createTexture( GLuint* texID, bool useMipmap, - uno::Sequence<sal_Int8>& data, + const uno::Sequence<sal_Int8>& data, const OGLFormat* pFormat ); const OGLFormat* chooseFormats(); @@ -188,7 +188,7 @@ private: void setSlides( const Reference< rendering::XBitmap >& xLeavingSlide , const uno::Reference< rendering::XBitmap >& xEnteringSlide ); void impl_prepareSlides(); - void impl_createTexture( bool useMipmap, uno::Sequence<sal_Int8>& data, const OGLFormat* pFormat ); + void impl_createTexture( bool useMipmap, const uno::Sequence<sal_Int8>& data, const OGLFormat* pFormat ); bool initWindowFromSlideShowView( const uno::Reference< presentation::XSlideShowView >& xView ); /** After the window has been created, and the slides have been set, we'll initialize the slides with OpenGL. @@ -448,7 +448,7 @@ bool OGLTransitionerImpl::setTransition( const std::shared_ptr<OGLTransitionImpl void OGLTransitionerImpl::createTexture( GLuint* texID, bool useMipmap, - uno::Sequence<sal_Int8>& data, + const uno::Sequence<sal_Int8>& data, const OGLFormat* pFormat ) { CHECK_GL_ERROR(); @@ -817,7 +817,7 @@ void buildMipmaps( void OGLTransitionerImpl::impl_createTexture( bool useMipmap, - uno::Sequence<sal_Int8>& data, + const uno::Sequence<sal_Int8>& data, const OGLFormat* pFormat ) { if( !pFormat ) diff --git a/solenv/lockfile/lockfile.c b/solenv/lockfile/lockfile.c index a902484b9484..52be40b0fb56 100644 --- a/solenv/lockfile/lockfile.c +++ b/solenv/lockfile/lockfile.c @@ -224,7 +224,7 @@ static int lockfilename(const char *lockfile, char *tmplock, size_t tmplocksz) static int lockfile_create_save_tmplock(const char *lockfile, char *tmplock, size_t tmplocksz, volatile char **xtmplock, - int retries, int flags, struct lockargs_s_ *args) + int retries, int flags, const struct lockargs_s_ *args) { struct stat st, st1; char pidbuf[40]; @@ -381,7 +381,7 @@ static int lockfile_create_save_tmplock(const char *lockfile, #ifdef LIB static #endif -int lockfile_create_set_tmplock(const char *lockfile, volatile char **xtmplock, int retries, int flags, struct lockargs_s_ *args) +int lockfile_create_set_tmplock(const char *lockfile, volatile char **xtmplock, int retries, int flags, const struct lockargs_s_ *args) { char *tmplock; int r, e; diff --git a/solenv/lockfile/lockfile.h b/solenv/lockfile/lockfile.h index 945db9cb9263..f2f72022f49e 100644 --- a/solenv/lockfile/lockfile.h +++ b/solenv/lockfile/lockfile.h @@ -63,7 +63,7 @@ int check_sleep(int, int); #endif int is_maillock(const char *lockfile); int lockfile_create_set_tmplock(const char *lockfile, volatile char **tmplock, - int retries, int flags, struct lockargs_s_ *); + int retries, int flags, const struct lockargs_s_ *); #ifdef __cplusplus } diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 7c626f2b6b7f..9b1703f6abc9 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -1321,7 +1321,7 @@ std::unique_ptr<weld::TreeIter> FmFilterNavigator::FindEntry(const FmFilterData* return nullptr; } -void FmFilterNavigator::Insert(FmFilterData* pItem, int nPos) +void FmFilterNavigator::Insert(const FmFilterData* pItem, int nPos) { const FmParentData* pParent = pItem->GetParent() ? pItem->GetParent() : m_pModel.get(); diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 22323f9feb0e..b717ffa3c5bf 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -608,7 +608,7 @@ namespace svxform } } - std::unique_ptr<weld::TreeIter> NavigatorTree::Insert(FmEntryData* pEntryData, int nRelPos) + std::unique_ptr<weld::TreeIter> NavigatorTree::Insert(const FmEntryData* pEntryData, int nRelPos) { // insert current entry std::unique_ptr<weld::TreeIter> xParentEntry = FindEntry( pEntryData->GetParent() ); diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx index 34343d9c0af4..47af4017a7f3 100644 --- a/svx/source/inc/filtnav.hxx +++ b/svx/source/inc/filtnav.hxx @@ -273,7 +273,7 @@ private: void DeleteSelection(); std::unique_ptr<weld::TreeIter> FindEntry(const FmFilterData* pItem) const; - void Insert(FmFilterData* pItem, int nPos); + void Insert(const FmFilterData* pItem, int nPos); void Remove(FmFilterData const * pItem); DECL_LINK(OnRemove, void*, void); diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index 572b563b7cd9..fc7823b699d9 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -409,7 +409,7 @@ namespace svxform FmControlData* NewControl(const OUString& rServiceName, const weld::TreeIter& rParentEntry, bool bEditName); void NewForm(const weld::TreeIter& rParentEntry); - std::unique_ptr<weld::TreeIter> Insert(FmEntryData* pEntryData, int nRelPos); + std::unique_ptr<weld::TreeIter> Insert(const FmEntryData* pEntryData, int nRelPos); void Remove( FmEntryData* pEntryData ); diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx index 4cd958d05f23..b1cb6fb34ca7 100644 --- a/svx/source/styles/ColorSets.cxx +++ b/svx/source/styles/ColorSets.cxx @@ -33,7 +33,7 @@ namespace { /// Updates a text portion to match a new color set, in case it already uses theme colors. void UpdateTextPortionColorSet(const uno::Reference<beans::XPropertySet>& xPortion, - svx::ColorSet& rColorSet) + const svx::ColorSet& rColorSet) { sal_Int16 nCharColorTheme = -1; xPortion->getPropertyValue(UNO_NAME_EDIT_CHAR_COLOR_THEME) >>= nCharColorTheme; @@ -63,7 +63,7 @@ void UpdateTextPortionColorSet(const uno::Reference<beans::XPropertySet>& xPorti uno::makeAny(static_cast<sal_Int32>(aColor))); } -void UpdateFillColorSet(const uno::Reference<beans::XPropertySet>& xShape, svx::ColorSet& rColorSet) +void UpdateFillColorSet(const uno::Reference<beans::XPropertySet>& xShape, const svx::ColorSet& rColorSet) { if (!xShape->getPropertySetInfo()->hasPropertyByName(UNO_NAME_FILLCOLOR_THEME)) { @@ -318,7 +318,7 @@ std::unique_ptr<Theme> Theme::FromAny(const css::uno::Any& rVal) return pTheme; } -void Theme::UpdateSdrPage(SdrPage* pPage) +void Theme::UpdateSdrPage(const SdrPage* pPage) { for (size_t nObject = 0; nObject < pPage->GetObjCount(); ++nObject) { diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 13e10c876338..769a720c3339 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -1991,7 +1991,7 @@ OUString SdrEdgeObj::getSpecialDragComment(const SdrDragStat& rDrag) const } -basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay(SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const +basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay(const SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const { basegfx::B2DPolygon aResult; diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx index 5f5f2708dc94..f1c97c4c16a8 100644 --- a/svx/source/svdraw/svdundo.cxx +++ b/svx/source/svdraw/svdundo.cxx @@ -972,7 +972,7 @@ OUString SdrUndoObjOrdNum::GetComment() const return ImpGetDescriptionStr(STR_UndoObjOrdNum); } -SdrUndoSort::SdrUndoSort(SdrPage & rPage, +SdrUndoSort::SdrUndoSort(const SdrPage & rPage, ::std::vector<sal_Int32> const& rSortOrder) : SdrUndoAction(rPage.getSdrModelFromSdrPage()) , m_OldSortOrder(rSortOrder.size()) diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx index 34843255309f..b700ef596603 100644 --- a/sw/inc/textboxhelper.hxx +++ b/sw/inc/textboxhelper.hxx @@ -176,7 +176,7 @@ public: /// Collect all textboxes of the group given by the pGroupObj Parameter. Returns with a /// vector filled with the textboxes. - static std::vector<SwFrameFormat*> CollectTextBoxes(SdrObject* pGroupObject, + static std::vector<SwFrameFormat*> CollectTextBoxes(const SdrObject* pGroupObject, SwFrameFormat* pFormat); }; diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx index 21da16f5f2d8..f1613a8052b3 100644 --- a/sw/source/core/doc/textboxhelper.cxx +++ b/sw/source/core/doc/textboxhelper.cxx @@ -1602,7 +1602,7 @@ void SwTextBoxHelper::synchronizeGroupTextBoxProperty(bool pFunc(SwFrameFormat*, } } -std::vector<SwFrameFormat*> SwTextBoxHelper::CollectTextBoxes(SdrObject* pGroupObject, +std::vector<SwFrameFormat*> SwTextBoxHelper::CollectTextBoxes(const SdrObject* pGroupObject, SwFrameFormat* pFormat) { std::vector<SwFrameFormat*> vRet; diff --git a/sw/source/core/edit/edlingu.cxx b/sw/source/core/edit/edlingu.cxx index 9c6228dffbf7..6e71649c1e2f 100644 --- a/sw/source/core/edit/edlingu.cxx +++ b/sw/source/core/edit/edlingu.cxx @@ -122,11 +122,11 @@ class SwSpellIter : public SwLinguIter bool m_bBackToStartOfSentence; void CreatePortion(uno::Reference< XSpellAlternatives > const & xAlt, - linguistic2::ProofreadingResult* pGrammarResult, + const linguistic2::ProofreadingResult* pGrammarResult, bool bIsField, bool bIsHidden); void AddPortion(uno::Reference< XSpellAlternatives > const & xAlt, - linguistic2::ProofreadingResult* pGrammarResult, + const linguistic2::ProofreadingResult* pGrammarResult, const SpellContentPositions& rDeletedRedlines); public: SwSpellIter() @@ -1533,7 +1533,7 @@ static LanguageType lcl_GetLanguage(SwEditShell& rSh) /// create a text portion at the given position void SwSpellIter::CreatePortion(uno::Reference< XSpellAlternatives > const & xAlt, - linguistic2::ProofreadingResult* pGrammarResult, + const linguistic2::ProofreadingResult* pGrammarResult, bool bIsField, bool bIsHidden) { svx::SpellPortion aPortion; @@ -1574,7 +1574,7 @@ void SwSpellIter::CreatePortion(uno::Reference< XSpellAlternatives > const & xAl } void SwSpellIter::AddPortion(uno::Reference< XSpellAlternatives > const & xAlt, - linguistic2::ProofreadingResult* pGrammarResult, + const linguistic2::ProofreadingResult* pGrammarResult, const SpellContentPositions& rDeletedRedlines) { SwEditShell *pMySh = GetSh(); diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index 11e890706e7a..c49d76fff70d 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -622,7 +622,7 @@ void SdtBlockHelper::DeleteAndResetTheLists() m_bHasId = false; } -void SdtBlockHelper::WriteSdtBlock(::sax_fastparser::FSHelperPtr& pSerializer, bool bRunTextIsOn, bool bParagraphHasDrawing) +void SdtBlockHelper::WriteSdtBlock(const ::sax_fastparser::FSHelperPtr& pSerializer, bool bRunTextIsOn, bool bParagraphHasDrawing) { if (m_nSdtPrToken <= 0 && !m_pDataBindingAttrs.is() && !m_bHasId) return; @@ -686,7 +686,7 @@ void SdtBlockHelper::WriteSdtBlock(::sax_fastparser::FSHelperPtr& pSerializer, b m_bHasId = false; } -void SdtBlockHelper::WriteExtraParams(::sax_fastparser::FSHelperPtr& pSerializer) +void SdtBlockHelper::WriteExtraParams(const ::sax_fastparser::FSHelperPtr& pSerializer) { if (m_nSdtPrToken == FSNS(XML_w, XML_id) || m_bHasId) //Word won't open a document with an empty id tag, we fill it with a random number @@ -720,7 +720,7 @@ void SdtBlockHelper::WriteExtraParams(::sax_fastparser::FSHelperPtr& pSerializer pSerializer->singleElementNS(XML_w, XML_alias, FSNS(XML_w, XML_val), m_aAlias); } -void SdtBlockHelper::EndSdtBlock(::sax_fastparser::FSHelperPtr& pSerializer) +void SdtBlockHelper::EndSdtBlock(const ::sax_fastparser::FSHelperPtr& pSerializer) { pSerializer->endElementNS(XML_w, XML_sdtContent); pSerializer->endElementNS(XML_w, XML_sdt); diff --git a/sw/source/filter/ww8/docxattributeoutput.hxx b/sw/source/filter/ww8/docxattributeoutput.hxx index 934247ab533d..cef2f871f1ae 100644 --- a/sw/source/filter/ww8/docxattributeoutput.hxx +++ b/sw/source/filter/ww8/docxattributeoutput.hxx @@ -145,11 +145,11 @@ public: void DeleteAndResetTheLists(); - void WriteSdtBlock(::sax_fastparser::FSHelperPtr& pSerializer, bool bRunTextIsOn, bool bParagraphHasDrawing); - void WriteExtraParams(::sax_fastparser::FSHelperPtr& pSerializer); + void WriteSdtBlock(const ::sax_fastparser::FSHelperPtr& pSerializer, bool bRunTextIsOn, bool bParagraphHasDrawing); + void WriteExtraParams(const ::sax_fastparser::FSHelperPtr& pSerializer); /// Closes a currently open SDT block. - void EndSdtBlock(::sax_fastparser::FSHelperPtr& pSerializer); + void EndSdtBlock(const ::sax_fastparser::FSHelperPtr& pSerializer); void GetSdtParamsFromGrabBag(const uno::Sequence<beans::PropertyValue>& aGrabBagSdt); }; diff --git a/ucb/source/ucp/webdav-curl/DAVSessionFactory.cxx b/ucb/source/ucp/webdav-curl/DAVSessionFactory.cxx index b89928b5d02b..1c1a220265bf 100644 --- a/ucb/source/ucp/webdav-curl/DAVSessionFactory.cxx +++ b/ucb/source/ucp/webdav-curl/DAVSessionFactory.cxx @@ -76,7 +76,7 @@ rtl::Reference< DAVSession > DAVSessionFactory::createDAVSession( } } -void DAVSessionFactory::releaseElement( DAVSession * pElement ) +void DAVSessionFactory::releaseElement( const DAVSession * pElement ) { assert( pElement ); std::unique_lock aGuard( m_aMutex ); diff --git a/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx b/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx index b931e1b4a8ec..2699035ebbe2 100644 --- a/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx +++ b/ucb/source/ucp/webdav-curl/DAVSessionFactory.hxx @@ -64,7 +64,7 @@ private: std::mutex m_aMutex; std::unique_ptr<ucbhelper::InternetProxyDecider> m_xProxyDecider; - void releaseElement(DAVSession* pElement); + void releaseElement(const DAVSession* pElement); friend class DAVSession; }; diff --git a/writerfilter/source/dmapper/PropertyMap.cxx b/writerfilter/source/dmapper/PropertyMap.cxx index dabdff851a9c..e6f4b4a59380 100644 --- a/writerfilter/source/dmapper/PropertyMap.cxx +++ b/writerfilter/source/dmapper/PropertyMap.cxx @@ -882,7 +882,7 @@ void SectionPropertyMap::CopyHeaderFooterTextProperty( const uno::Reference< bea } // Copy headers and footers from the previous page style. -void SectionPropertyMap::CopyHeaderFooter( DomainMapper_Impl& rDM_Impl, +void SectionPropertyMap::CopyHeaderFooter( const DomainMapper_Impl& rDM_Impl, const uno::Reference< beans::XPropertySet >& xPrevStyle, const uno::Reference< beans::XPropertySet >& xStyle, bool bOmitRightHeader, diff --git a/writerfilter/source/dmapper/PropertyMap.hxx b/writerfilter/source/dmapper/PropertyMap.hxx index b03ef7bd664c..e9a0fdbd5df0 100644 --- a/writerfilter/source/dmapper/PropertyMap.hxx +++ b/writerfilter/source/dmapper/PropertyMap.hxx @@ -299,7 +299,7 @@ private: void CopyLastHeaderFooter( bool bFirstPage, DomainMapper_Impl& rDM_Impl ); - static void CopyHeaderFooter( DomainMapper_Impl& rDM_Impl, + static void CopyHeaderFooter( const DomainMapper_Impl& rDM_Impl, const css::uno::Reference< css::beans::XPropertySet >& xPrevStyle, const css::uno::Reference< css::beans::XPropertySet >& xStyle, bool bOmitRightHeader = false, bool bOmitLeftHeader = false, |