summaryrefslogtreecommitdiff
path: root/sw/source/core/graphic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-04 10:15:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-04 11:55:27 +0200
commit902d87147d779c84b4ea84ef7779897d89b1fab2 (patch)
tree3ed603fedf6db10111a3f47202d83c5b223eff65 /sw/source/core/graphic
parentbca55386e187e2cb4ab277a597a420f15c6cebcf (diff)
loplugin:constparams in sw part3
Change-Id: I05ad3204af4e6ec3c832b185a1b35fdb75a229b2 Reviewed-on: https://gerrit.libreoffice.org/40760 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r--sw/source/core/graphic/ndgrf.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index c16c548ca626..8501948cdd99 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -63,7 +63,7 @@ SwGrfNode::SwGrfNode(
const OUString& rGrfName, const OUString& rFltName,
const Graphic* pGraphic,
SwGrfFormatColl *pGrfColl,
- SwAttrSet* pAutoAttr ) :
+ SwAttrSet const * pAutoAttr ) :
SwNoTextNode( rWhere, SwNodeType::Grf, pGrfColl, pAutoAttr ),
maGrfObj(),
mpReplacementGraphic(nullptr),
@@ -81,7 +81,7 @@ SwGrfNode::SwGrfNode(
SwGrfNode::SwGrfNode( const SwNodeIndex & rWhere,
const GraphicObject& rGrfObj,
- SwGrfFormatColl *pGrfColl, SwAttrSet* pAutoAttr ) :
+ SwGrfFormatColl *pGrfColl, SwAttrSet const * pAutoAttr ) :
SwNoTextNode( rWhere, SwNodeType::Grf, pGrfColl, pAutoAttr ),
maGrfObj(rGrfObj),
mpReplacementGraphic(nullptr),
@@ -104,7 +104,7 @@ SwGrfNode::SwGrfNode( const SwNodeIndex & rWhere,
SwGrfNode::SwGrfNode( const SwNodeIndex & rWhere,
const OUString& rGrfName, const OUString& rFltName,
SwGrfFormatColl *pGrfColl,
- SwAttrSet* pAutoAttr ) :
+ SwAttrSet const * pAutoAttr ) :
SwNoTextNode( rWhere, SwNodeType::Grf, pGrfColl, pAutoAttr ),
maGrfObj(),
mpReplacementGraphic(nullptr),
@@ -425,7 +425,7 @@ SwGrfNode * SwNodes::MakeGrfNode( const SwNodeIndex & rWhere,
const OUString& rFltName,
const Graphic* pGraphic,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr,
+ SwAttrSet const * pAutoAttr,
bool bDelayed )
{
OSL_ENSURE( pGrfColl, "MakeGrfNode: Formatpointer is 0." );
@@ -952,8 +952,8 @@ SwContentNode* SwGrfNode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
}
SwGrfNode* pGrfNd = SwNodes::MakeGrfNode( rIdx, sFile, sFilter,
- &aTmpGrf, pColl,
- const_cast<SwAttrSet*>(GetpSwAttrSet()) );
+ &aTmpGrf, pColl,
+ GetpSwAttrSet() );
pGrfNd->SetTitle( GetTitle() );
pGrfNd->SetDescription( GetDescription() );
pGrfNd->SetContour( HasContour(), HasAutomaticContour() );