summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-07-26 19:34:44 +0200
committerMichael Stahl <mstahl@redhat.com>2013-07-27 00:45:20 +0200
commit1ed9d506f8b0cc246c952673a2fff11e8314ba46 (patch)
tree57085fc2a5a2da3399624a2c56a914c2cfa3a4c3 /sc
parente039978b5256bfa0c42b1ce546c27326ef052412 (diff)
SfxStyleSheetBasePool::Make: remove nPos parameter
The only caller who could have used a non-default value was SfxObjectShell::Insert(). Change-Id: I18174a54a9c0246850dc6347d0147e8640ad101d
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/stlpool.hxx2
-rw-r--r--sc/source/core/data/stlpool.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/stlpool.hxx b/sc/inc/stlpool.hxx
index f3abe11b0924..c17b5a69fb9e 100644
--- a/sc/inc/stlpool.hxx
+++ b/sc/inc/stlpool.hxx
@@ -54,7 +54,7 @@ public:
const OUString* GetForceStdName() const { return pForceStdName; }
virtual SfxStyleSheetBase& Make( const OUString&, SfxStyleFamily eFam,
- sal_uInt16 nMask = SFXSTYLEBIT_ALL, sal_uInt16 nPos = 0xffff );
+ sal_uInt16 nMask = SFXSTYLEBIT_ALL) SAL_OVERRIDE;
protected:
virtual ~ScStyleSheetPool();
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index da1ddb364d19..3d4cb2c63021 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -81,7 +81,7 @@ void ScStyleSheetPool::SetDocument( ScDocument* pDocument )
//------------------------------------------------------------------------
SfxStyleSheetBase& ScStyleSheetPool::Make( const OUString& rName,
- SfxStyleFamily eFam, sal_uInt16 mask, sal_uInt16 nPos )
+ SfxStyleFamily eFam, sal_uInt16 mask)
{
// When updating styles from a template, Office 5.1 sometimes created
// files with multiple default styles.
@@ -98,11 +98,11 @@ SfxStyleSheetBase& ScStyleSheetPool::Make( const OUString& rName,
OUString aNewName = ScGlobal::GetRscString(STR_STYLENAME_STANDARD);
aNewName += OUString::number( nAdd );
if ( Find( aNewName, eFam ) == NULL )
- return SfxStyleSheetPool::Make( aNewName, eFam, mask, nPos );
+ return SfxStyleSheetPool::Make(aNewName, eFam, mask);
}
}
- return SfxStyleSheetPool::Make( rName, eFam, mask, nPos );
+ return SfxStyleSheetPool::Make(rName, eFam, mask);
}
//------------------------------------------------------------------------