From 0c1ab11c9fa24eb2d4a4d08387d314e04c0aafee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 18 Oct 2019 14:06:01 +0200 Subject: loplugin:virtualdead unused param in SfxObjectShell::FillClass and since I notice that the two call sites also don't care about pShortTypeName, remove that too Change-Id: I4649fc4c134c1113555b9dedb53499ce39d17132 Reviewed-on: https://gerrit.libreoffice.org/81213 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/inc/document.hxx | 2 -- starmath/source/document.cxx | 4 ---- 2 files changed, 6 deletions(-) (limited to 'starmath') diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index dd1f540a3fe3..cc09c2ea0c9b 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -107,9 +107,7 @@ class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener virtual void FillClass(SvGlobalName* pClassName, SotClipboardFormatId* pFormat, - OUString* pAppName, OUString* pFullTypeName, - OUString* pShortTypeName, sal_Int32 nFileFormat, bool bTemplate = false ) const override; diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 62f0e0fc04fd..c3a56729284d 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -1258,9 +1258,7 @@ void SmDocShell::SetVisArea(const tools::Rectangle & rVisArea) void SmDocShell::FillClass(SvGlobalName* pClassName, SotClipboardFormatId* pFormat, - OUString* /*pAppName*/, OUString* pFullTypeName, - OUString* pShortTypeName, sal_Int32 nFileFormat, bool bTemplate /* = false */) const { @@ -1269,14 +1267,12 @@ void SmDocShell::FillClass(SvGlobalName* pClassName, *pClassName = SvGlobalName(SO3_SM_CLASSID_60); *pFormat = SotClipboardFormatId::STARMATH_60; *pFullTypeName = SmResId(STR_MATH_DOCUMENT_FULLTYPE_CURRENT); - *pShortTypeName = SmResId(RID_DOCUMENTSTR); } else if (nFileFormat == SOFFICE_FILEFORMAT_8 ) { *pClassName = SvGlobalName(SO3_SM_CLASSID_60); *pFormat = bTemplate ? SotClipboardFormatId::STARMATH_8_TEMPLATE : SotClipboardFormatId::STARMATH_8; *pFullTypeName = SmResId(STR_MATH_DOCUMENT_FULLTYPE_CURRENT); - *pShortTypeName = SmResId(RID_DOCUMENTSTR); } } -- cgit