drop unused argument
Change-Id: Ibbf3d6cbf694b1ca693d53c9ac92076a85df125f
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index 9787ad2..19b75d2 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3983,10 +3983,10 @@ void WW8RStyle::Import1Style( sal_uInt16 nNr )
pStStrm->Seek( rSI.m_nFilePos );
sal_uInt16 nSkip, cbStd;
sal_uInt16 nSkip;
OUString sName;
std::unique_ptr<WW8_STD> xStd(Read1Style(nSkip, &sName, &cbStd));// read Style
std::unique_ptr<WW8_STD> xStd(Read1Style(nSkip, &sName));// read Style
if (xStd)
rSI.SetOrgWWIdent( sName, xStd->sti );
@@ -4079,7 +4079,7 @@ void WW8RStyle::ScanStyles() // investigate style dependencies
rSI.m_nFilePos = pStStrm->Tell(); // remember FilePos
sal_uInt16 nSkip;
WW8_STD* pStd = Read1Style( nSkip, nullptr, nullptr ); // read STD
WW8_STD* pStd = Read1Style(nSkip, nullptr); // read STD
rSI.m_bValid = (nullptr != pStd);
if (rSI.m_bValid)
{
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 322f16c8..4ce475c 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -6563,7 +6563,7 @@ WW8Style::WW8Style(SvStream& rStream, WW8Fib& rFibPara)
// so it has no empty slot, we should allocate memory and a pointer should
// reference to STD (perhaps filled with 0). If the slot is empty,
// it will return a null pointer.
WW8_STD* WW8Style::Read1STDFixed(sal_uInt16& rSkip, sal_uInt16* pcbStd)
WW8_STD* WW8Style::Read1STDFixed(sal_uInt16& rSkip)
{
WW8_STD* pStd = nullptr;
@@ -6630,17 +6630,15 @@ WW8_STD* WW8Style::Read1STDFixed(sal_uInt16& rSkip, sal_uInt16* pcbStd)
rSt.SeekRel( cbStd ); // skip leftovers
rSkip = 0;
}
if( pcbStd )
*pcbStd = cbStd;
return pStd;
}
WW8_STD* WW8Style::Read1Style(sal_uInt16& rSkip, OUString* pString, sal_uInt16* pcbStd)
WW8_STD* WW8Style::Read1Style(sal_uInt16& rSkip, OUString* pString)
{
// Attention: MacWord-Documents have their Stylenames
// always in ANSI, even if eStructCharSet == CHARSET_MAC !!
WW8_STD* pStd = Read1STDFixed(rSkip, pcbStd); // read STD
WW8_STD* pStd = Read1STDFixed(rSkip); // read STD
// string desired?
if( pString )
diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx
index c0ead8a7..c3b9cd2 100644
--- a/sw/source/filter/ww8/ww8scan.hxx
+++ b/sw/source/filter/ww8/ww8scan.hxx
@@ -1563,8 +1563,8 @@ protected:
public:
WW8Style( SvStream& rSt, WW8Fib& rFibPara );
WW8_STD* Read1STDFixed(sal_uInt16& rSkip, sal_uInt16* pcbStd);
WW8_STD* Read1Style(sal_uInt16& rSkip, OUString* pString, sal_uInt16* pcbStd);
WW8_STD* Read1STDFixed(sal_uInt16& rSkip);
WW8_STD* Read1Style(sal_uInt16& rSkip, OUString* pString);
sal_uInt16 GetCount() const { return cstd; }
};