diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-24 20:26:22 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-24 21:46:23 +0100 |
commit | d2c9e289733df395b911a46c1028014f42e75f99 (patch) | |
tree | 49911788e81a04eb88de9159dbd2b6446f4655ba /io | |
parent | 17c3d827e12d9ca99b869132f23ba212b11f909a (diff) |
cppcheck: performing init in init list (hwpfilter, i., l.)
Change-Id: Idf5b7be45d48076fbe191fbf1a2fa63c6da71902
Reviewed-on: https://gerrit.libreoffice.org/83617
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/stm/streamhelper.cxx | 6 | ||||
-rw-r--r-- | io/test/stm/pipetest.cxx | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/io/source/stm/streamhelper.cxx b/io/source/stm/streamhelper.cxx index be0644d5e1b2..2eace1e70d4c 100644 --- a/io/source/stm/streamhelper.cxx +++ b/io/source/stm/streamhelper.cxx @@ -46,12 +46,8 @@ void MemFIFO::skip( sal_Int32 nBytesToSkip ) forgetFromStart( nBytesToSkip ); } -MemRingBuffer::MemRingBuffer() +MemRingBuffer::MemRingBuffer() : m_p(nullptr), m_nBufferLen(0), m_nStart(0), m_nOccupiedBuffer(0) { - m_nBufferLen = 0; - m_p = nullptr; - m_nStart = 0; - m_nOccupiedBuffer = 0; } MemRingBuffer::~MemRingBuffer() diff --git a/io/test/stm/pipetest.cxx b/io/test/stm/pipetest.cxx index 6744ad1037a1..77c333b0dc80 100644 --- a/io/test/stm/pipetest.cxx +++ b/io/test/stm/pipetest.cxx @@ -55,9 +55,8 @@ class WriteToStreamThread : public: WriteToStreamThread( Reference< XOutputStream > xOutput , int iMax ) + : m_output(xOutput), m_iMax(iMax) { - m_output = xOutput; - m_iMax = iMax; } virtual ~WriteToStreamThread() {} |