summaryrefslogtreecommitdiff
path: root/sw/source/core/docnode
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-08 09:23:17 +0200
committerNoel Grandin <noel@peralex.com>2016-09-08 09:23:40 +0200
commit579426f798580093214fa8a7cc648318642c7e12 (patch)
tree1e4b543a9010134e384d43d2bbbd1a97e3f3725b /sw/source/core/docnode
parent847e004e65ec3c35acff607588d15cd75a84f121 (diff)
loplugin:constantparam in sw
Change-Id: Ic49d1c3c7b57fb213964ddc21b0f774c762aad94
Diffstat (limited to 'sw/source/core/docnode')
-rw-r--r--sw/source/core/docnode/ndtbl.cxx2
-rw-r--r--sw/source/core/docnode/node2lay.cxx5
-rw-r--r--sw/source/core/docnode/section.cxx6
3 files changed, 6 insertions, 7 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index 1c1d2ac53b4d..1c928728ec75 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -2343,7 +2343,7 @@ sal_uInt16 SwDoc::MergeTable( SwPaM& rPam )
SwTableNode::SwTableNode( const SwNodeIndex& rIdx )
: SwStartNode( rIdx, ND_TABLENODE )
{
- m_pTable = new SwTable( nullptr );
+ m_pTable = new SwTable;
}
SwTableNode::~SwTableNode()
diff --git a/sw/source/core/docnode/node2lay.cxx b/sw/source/core/docnode/node2lay.cxx
index 18c01ee16ed0..4a829a33a94f 100644
--- a/sw/source/core/docnode/node2lay.cxx
+++ b/sw/source/core/docnode/node2lay.cxx
@@ -453,10 +453,9 @@ SwNode2Layout::~SwNode2Layout()
{
}
-SwFrame* SwNode2Layout::GetFrame( const Point* pDocPos,
- const SwPosition *pPos ) const
+SwFrame* SwNode2Layout::GetFrame( const Point* pDocPos ) const
{
- return pImpl->GetFrame( pDocPos, pPos );
+ return pImpl->GetFrame( pDocPos, nullptr );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sw/source/core/docnode/section.cxx b/sw/source/core/docnode/section.cxx
index b44a2636178a..0e1065d479ed 100644
--- a/sw/source/core/docnode/section.cxx
+++ b/sw/source/core/docnode/section.cxx
@@ -72,8 +72,8 @@ class SwIntrnlSectRefLink : public SwBaseLink
{
SwSectionFormat& rSectFormat;
public:
- SwIntrnlSectRefLink( SwSectionFormat& rFormat, SfxLinkUpdateMode nUpdateType, SotClipboardFormatId nFormat )
- : SwBaseLink( nUpdateType, nFormat ),
+ SwIntrnlSectRefLink( SwSectionFormat& rFormat, SfxLinkUpdateMode nUpdateType )
+ : SwBaseLink( nUpdateType, SotClipboardFormatId::RTF ),
rSectFormat( rFormat )
{}
@@ -1506,7 +1506,7 @@ void SwSection::CreateLink( LinkCreateType eCreateType )
if (!m_RefLink.Is())
{
// create BaseLink
- m_RefLink = new SwIntrnlSectRefLink( *pFormat, nUpdateType, SotClipboardFormatId::RTF );
+ m_RefLink = new SwIntrnlSectRefLink( *pFormat, nUpdateType );
}
else
{