summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-03-10 21:53:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-03-11 10:05:39 +0100
commit69b5f0b6579c6574a8fe68ab2a64208ec767db55 (patch)
tree1fafea3a72e113d0a915a1f79a2f4b3406d695a0 /oox
parent4015b22dbc10bc246a3ef704d8b75e8f8cdca519 (diff)
loplugin:constparams
Change-Id: I5f184f93dbdb414514855c85c9dc1624e7ec8636 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131337 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/diagram/diagramhelper.cxx2
-rw-r--r--oox/source/drawingml/diagram/diagramhelper.hxx2
-rw-r--r--oox/source/drawingml/shape.cxx2
-rw-r--r--oox/source/drawingml/table/predefined-table-styles.cxx2
-rw-r--r--oox/source/export/shapes.cxx4
5 files changed, 6 insertions, 6 deletions
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 )
{