summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-08 10:21:09 +0200
committerNoel Grandin <noel@peralex.com>2016-09-08 11:47:19 +0200
commit0f8a30318695447e205b17fb0af06362ab890bc3 (patch)
tree7d31a0475a732772dd0967ba7be29868e24a09ab /sw/source/uibase/app
parentac1c3f2ab68a17b6508901bf9b5abdad618158a6 (diff)
loplugin:constantparam in sw
Change-Id: Ibae4cac28e6ff52298c804519f683017729c07a5
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/docstyle.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index f7a176a54d32..0203ee42c9d9 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -449,12 +449,11 @@ void SwStyleSheetIterator::SwPoolFormatList::Append( char cChar, const OUString&
// UI-sided implementation of StyleSheets
// uses the Core-Engine
-SwDocStyleSheet::SwDocStyleSheet( SwDoc& rDocument,
- const OUString& rName,
- SwDocStyleSheetPool* _rPool,
- SfxStyleFamily eFam) :
+SwDocStyleSheet::SwDocStyleSheet( SwDoc& rDocument,
+ const OUString& rName,
+ SwDocStyleSheetPool* _rPool) :
- SfxStyleSheetBase( rName, _rPool, eFam, 0 ),
+ SfxStyleSheetBase( rName, _rPool, SfxStyleFamily::Char, 0 ),
pCharFormat(nullptr),
pColl(nullptr),
pFrameFormat(nullptr),
@@ -2405,7 +2404,7 @@ void SwDocStyleSheet::SetHelpId( const OUString& r, sal_uLong nId )
// methods for DocStyleSheetPool
SwDocStyleSheetPool::SwDocStyleSheetPool( SwDoc& rDocument, bool bOrg )
: SfxStyleSheetBasePool( rDocument.GetAttrPool() )
-, mxStyleSheet( new SwDocStyleSheet( rDocument, OUString(), this, SfxStyleFamily::Char ) )
+, mxStyleSheet( new SwDocStyleSheet( rDocument, OUString(), this ) )
, rDoc( rDocument )
{
bOrganizer = bOrg;
@@ -2654,8 +2653,8 @@ SfxStyleSheetBase* SwDocStyleSheetPool::Find( const OUString& rName,
SwStyleSheetIterator::SwStyleSheetIterator( SwDocStyleSheetPool* pBase,
SfxStyleFamily eFam, sal_uInt16 n )
: SfxStyleSheetIterator( pBase, eFam, n ),
- mxIterSheet( new SwDocStyleSheet( pBase->GetDoc(), OUString(), pBase, SfxStyleFamily::Char ) ),
- mxStyleSheet( new SwDocStyleSheet( pBase->GetDoc(), OUString(), pBase, SfxStyleFamily::Char ) )
+ mxIterSheet( new SwDocStyleSheet( pBase->GetDoc(), OUString(), pBase ) ),
+ mxStyleSheet( new SwDocStyleSheet( pBase->GetDoc(), OUString(), pBase ) )
{
bFirstCalled = false;
nLastPos = 0;