summaryrefslogtreecommitdiff
path: root/oox/source/vml/vmlinputstream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/vml/vmlinputstream.cxx')
-rw-r--r--oox/source/vml/vmlinputstream.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx
index 57204c3efbb1..0c413b15fc01 100644
--- a/oox/source/vml/vmlinputstream.cxx
+++ b/oox/source/vml/vmlinputstream.cxx
@@ -278,7 +278,6 @@ InputStream::~InputStream()
}
sal_Int32 SAL_CALL InputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
if( nBytesToRead < 0 )
throw IOException();
@@ -304,13 +303,11 @@ sal_Int32 SAL_CALL InputStream::readBytes( Sequence< sal_Int8 >& rData, sal_Int3
}
sal_Int32 SAL_CALL InputStream::readSomeBytes( Sequence< sal_Int8 >& rData, sal_Int32 nMaxBytesToRead )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
return readBytes( rData, nMaxBytesToRead );
}
void SAL_CALL InputStream::skipBytes( sal_Int32 nBytesToSkip )
- throw (NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
if( nBytesToSkip < 0 )
throw IOException();
@@ -324,20 +321,20 @@ void SAL_CALL InputStream::skipBytes( sal_Int32 nBytesToSkip )
}
}
-sal_Int32 SAL_CALL InputStream::available() throw (NotConnectedException, IOException, RuntimeException, std::exception)
+sal_Int32 SAL_CALL InputStream::available()
{
updateBuffer();
return maBuffer.getLength() - mnBufferPos;
}
-void SAL_CALL InputStream::closeInput() throw (NotConnectedException, IOException, RuntimeException, std::exception)
+void SAL_CALL InputStream::closeInput()
{
mxTextStrm->closeInput();
}
// private --------------------------------------------------------------------
-void InputStream::updateBuffer() throw (IOException, RuntimeException)
+void InputStream::updateBuffer()
{
while( (mnBufferPos >= maBuffer.getLength()) && !mxTextStrm->isEOF() )
{
@@ -375,12 +372,12 @@ void InputStream::updateBuffer() throw (IOException, RuntimeException)
}
}
-OString InputStream::readToElementBegin() throw (IOException, RuntimeException)
+OString InputStream::readToElementBegin()
{
return OUStringToOString( mxTextStrm->readString( maOpeningBracket, false ), RTL_TEXTENCODING_ISO_8859_1 );
}
-OString InputStream::readToElementEnd() throw (IOException, RuntimeException)
+OString InputStream::readToElementEnd()
{
OString aText = OUStringToOString( mxTextStrm->readString( maClosingBracket, false ), RTL_TEXTENCODING_ISO_8859_1 );
OSL_ENSURE( aText.endsWith(">"), "InputStream::readToElementEnd - missing closing bracket of XML element" );