summaryrefslogtreecommitdiff
path: root/svl/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-09 11:06:42 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-09-09 11:27:23 +0000
commitcb958bb5e0e81d343c91c08a8513006a7bf1d913 (patch)
tree376b6bdfd1e4be0851f5eba9092588cfde451945 /svl/source/misc
parentf4fcec5f0802620192c31aad24db436ead1b2036 (diff)
loplugin:constantparam in sot..svl
Change-Id: I08db2db3b90725c556e3ba062da5d62d98f6e882 Reviewed-on: https://gerrit.libreoffice.org/28769 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl/source/misc')
-rw-r--r--svl/source/misc/strmadpt.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index f8ae73263b02..9b784ca2a958 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -70,10 +70,7 @@ private:
void remove(Page * pPage);
public:
- inline SvDataPipe_Impl(sal_uInt32 nThePageSize = 1000,
- sal_uInt32 nTheMinPages = 100,
- sal_uInt32 nTheMaxPages
- = std::numeric_limits< sal_uInt32 >::max());
+ inline SvDataPipe_Impl();
~SvDataPipe_Impl();
@@ -92,9 +89,7 @@ public:
SeekResult setReadPosition(sal_uInt32 nPosition);
};
-SvDataPipe_Impl::SvDataPipe_Impl(sal_uInt32 nThePageSize,
- sal_uInt32 nTheMinPages,
- sal_uInt32 nTheMaxPages)
+SvDataPipe_Impl::SvDataPipe_Impl()
: m_pFirstPage( nullptr )
, m_pReadPage( nullptr )
, m_pWritePage( nullptr )
@@ -102,11 +97,11 @@ SvDataPipe_Impl::SvDataPipe_Impl(sal_uInt32 nThePageSize,
, m_nReadBufferSize( 0 )
, m_nReadBufferFilled( 0 )
, m_nPageSize(std::min< sal_uInt32 >(
- std::max< sal_uInt32 >(nThePageSize, sal_uInt32(1)),
+ 1000,
sal_uInt32(std::numeric_limits< sal_uInt32 >::max()
- sizeof (Page) + 1)))
- , m_nMinPages(std::max< sal_uInt32 >(nTheMinPages, sal_uInt32(1)))
- , m_nMaxPages(std::max< sal_uInt32 >(nTheMaxPages, sal_uInt32(1)))
+ , m_nMinPages(100)
+ , m_nMaxPages(std::numeric_limits< sal_uInt32 >::max())
, m_nPages( 0 )
, m_bEOF( false )
{}