summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:24:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-15 11:30:42 +0200
commit3b48b3cc92c93911f61535d22a2c8731574ee51a (patch)
tree2602c98df9d414d803e94bf9f80780d4395b8d8f /svl
parentb79b5e0df6dc5a0ba18054b0503d6fa804b69f02 (diff)
loplugin:singlevalfields in sc..vcl
Change-Id: I68752a3daf5ddd8581c07759b8be2c1dabbb9258
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/strmadpt.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index 9b784ca2a958..f29b7663ca36 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -62,8 +62,6 @@ private:
sal_uInt32 m_nReadBufferSize;
sal_uInt32 m_nReadBufferFilled;
sal_uInt32 m_nPageSize;
- sal_uInt32 m_nMinPages;
- sal_uInt32 m_nMaxPages;
sal_uInt32 m_nPages;
bool m_bEOF;
@@ -100,8 +98,6 @@ SvDataPipe_Impl::SvDataPipe_Impl()
1000,
sal_uInt32(std::numeric_limits< sal_uInt32 >::max()
- sizeof (Page) + 1)))
- , m_nMinPages(100)
- , m_nMaxPages(std::numeric_limits< sal_uInt32 >::max())
, m_nPages( 0 )
, m_bEOF( false )
{}
@@ -463,7 +459,7 @@ void SvDataPipe_Impl::remove(Page * pPage)
m_pFirstPage = m_pFirstPage->m_pNext;
- if (m_nPages <= m_nMinPages)
+ if (m_nPages <= 100) // min pages
return;
pPage->m_pPrev->m_pNext = pPage->m_pNext;
@@ -595,7 +591,7 @@ void SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize)
if (m_pWritePage->m_pNext == m_pFirstPage)
{
- if (m_nPages == m_nMaxPages)
+ if (m_nPages == std::numeric_limits< sal_uInt32 >::max())
break;
Page * pNew