summaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-09 12:47:30 +0200
committerNoel Grandin <noel@peralex.com>2015-10-12 09:13:34 +0200
commit8d811d701fb8618195a87fa05f83cc270bf3839b (patch)
tree625fd0af10a339ba7187af6e09effb14b9621df3 /io
parent1d8806120f03e76574d5181fef0f0e81a3273caa (diff)
loplugin:mergeclasses
Change-Id: I672d277a8d2dc6b57b299679e7e98348f9dbde30
Diffstat (limited to 'io')
-rw-r--r--io/source/stm/opipe.cxx4
-rw-r--r--io/source/stm/streamhelper.hxx54
2 files changed, 20 insertions, 38 deletions
diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx
index 3b80057849d6..433d912bf777 100644
--- a/io/source/stm/opipe.cxx
+++ b/io/source/stm/opipe.cxx
@@ -117,8 +117,8 @@ private:
bool m_bInputStreamClosed;
osl::Condition m_conditionBytesAvail;
- Mutex m_mutexAccess;
- I_FIFO *m_pFIFO;
+ Mutex m_mutexAccess;
+ MemFIFO *m_pFIFO;
};
diff --git a/io/source/stm/streamhelper.hxx b/io/source/stm/streamhelper.hxx
index 84501384ab64..436e8fc76930 100644
--- a/io/source/stm/streamhelper.hxx
+++ b/io/source/stm/streamhelper.hxx
@@ -37,32 +37,6 @@
namespace io_stm
{
-class I_FIFO_OutOfBoundsException :
- public Exception
-{};
-
-class I_FIFO_OutOfMemoryException :
- public Exception
-{};
-
-class I_FIFO
-{
-public:
-
-
- virtual void write( const Sequence<sal_Int8> &) throw( I_FIFO_OutOfMemoryException,
- I_FIFO_OutOfBoundsException )=0;
-
- virtual void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )
- throw( I_FIFO_OutOfBoundsException )=0;
- virtual void skip( sal_Int32 nBytesToSkip )
- throw( I_FIFO_OutOfBoundsException )=0;
- virtual sal_Int32 getSize() const throw( ) =0;
-
- virtual ~I_FIFO() {};
-};
-
-
class IRingBuffer_OutOfBoundsException :
public Exception
{};
@@ -110,20 +84,28 @@ private:
};
+class I_FIFO_OutOfBoundsException :
+ public Exception
+{};
+
+class I_FIFO_OutOfMemoryException :
+ public Exception
+{};
+
class MemFIFO :
- public I_FIFO,
private MemRingBuffer
{
public:
- virtual void write( const Sequence<sal_Int8> &) throw( I_FIFO_OutOfMemoryException,
- I_FIFO_OutOfBoundsException ) SAL_OVERRIDE;
- virtual void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )
- throw( I_FIFO_OutOfBoundsException ) SAL_OVERRIDE;
- virtual void skip( sal_Int32 nBytesToSkip ) throw( I_FIFO_OutOfBoundsException ) SAL_OVERRIDE;
- virtual sal_Int32 getSize() const throw( ) SAL_OVERRIDE
- { return MemRingBuffer::getSize(); }
- virtual void shrink() throw() SAL_OVERRIDE
- { MemRingBuffer::shrink(); }
+ void write( const Sequence<sal_Int8> &)
+ throw( I_FIFO_OutOfMemoryException, I_FIFO_OutOfBoundsException );
+ void read( Sequence<sal_Int8> & , sal_Int32 nBytesToRead )
+ throw( I_FIFO_OutOfBoundsException );
+ void skip( sal_Int32 nBytesToSkip )
+ throw( I_FIFO_OutOfBoundsException );
+ sal_Int32 getSize() const throw()
+ { return MemRingBuffer::getSize(); }
+ virtual void shrink() throw() SAL_OVERRIDE
+ { MemRingBuffer::shrink(); }
};