summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-04-05 23:04:51 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-04-06 13:11:27 -0500
commitac13f88b5d8b1cf0506fe464bfd8a2a0bd28e849 (patch)
treef93fbfb1f25b983b5a32a6df92f456ff970bdacf /svl
parent2e77df68184ab4341407c57c03b67c6f339a5529 (diff)
coverity#708257: Unitialized scalar field
Change-Id: Ib46e6f5cb52cd47c4c9914b2f15633f5e6af1fe6
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/strmadpt.cxx28
1 files changed, 15 insertions, 13 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index 83ea62806f56..7b8dc4e05168 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -92,19 +92,21 @@ public:
SvDataPipe_Impl::SvDataPipe_Impl(sal_uInt32 nThePageSize,
sal_uInt32 nTheMinPages,
- sal_uInt32 nTheMaxPages):
- m_pFirstPage(0),
- m_pReadPage(0),
- m_pWritePage(0),
- m_pReadBuffer(0),
- m_nPageSize(std::min< sal_uInt32 >(
- std::max< sal_uInt32 >(nThePageSize, sal_uInt32(1)),
- 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_nPages(0),
- m_bEOF(false)
+ sal_uInt32 nTheMaxPages)
+ : m_pFirstPage( 0 )
+ , m_pReadPage( 0 )
+ , m_pWritePage( 0 )
+ , m_pReadBuffer( 0 )
+ , m_nReadBufferSize( 0 )
+ , m_nReadBufferFilled( 0 )
+ , m_nPageSize(std::min< sal_uInt32 >(
+ std::max< sal_uInt32 >(nThePageSize, sal_uInt32(1)),
+ 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_nPages( 0 )
+ , m_bEOF( false )
{}
inline void SvDataPipe_Impl::setReadBuffer(sal_Int8 * pBuffer,