Kaydet (Commit) e54b9740 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:unreffun

Change-Id: Iaf75d9570c2091365a16e13119e4515957a86551
üst ca5479fb
...@@ -90,9 +90,6 @@ public: ...@@ -90,9 +90,6 @@ public:
inline bool isEOF() const; inline bool isEOF() const;
bool addMark(sal_uInt32 nPosition);
bool removeMark(sal_uInt32 nPosition);
SeekResult setReadPosition(sal_uInt32 nPosition); SeekResult setReadPosition(sal_uInt32 nPosition);
}; };
...@@ -745,25 +742,6 @@ sal_uInt32 SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize) ...@@ -745,25 +742,6 @@ sal_uInt32 SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize)
return nSize - nRemain; return nSize - nRemain;
} }
bool SvDataPipe_Impl::addMark(sal_uInt32 nPosition)
{
if (m_pFirstPage != 0 && m_pFirstPage->m_nOffset > nPosition)
return false;
m_aMarks.insert(nPosition);
return true;
}
bool SvDataPipe_Impl::removeMark(sal_uInt32 nPosition)
{
std::multiset< sal_uInt32 >::iterator t = m_aMarks.find(nPosition);
if (t == m_aMarks.end())
return false;
m_aMarks.erase(t);
// coverity[pass_freed_arg] - remove frees m_pFirstPage but then sets m_pFirstPage to something else
while (remove(m_pFirstPage)) ;
return true;
}
SvDataPipe_Impl::SeekResult SvDataPipe_Impl::setReadPosition(sal_uInt32 SvDataPipe_Impl::SeekResult SvDataPipe_Impl::setReadPosition(sal_uInt32
nPosition) nPosition)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment