summaryrefslogtreecommitdiff
path: root/io/source/TextOutputStream/TextOutputStream.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-25 21:31:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-26 18:22:20 +0100
commit5e21a413c788f839a66d9e4c14e745ed18058db8 (patch)
treed4451246461346a425ad6f796e08bf1514cdd942 /io/source/TextOutputStream/TextOutputStream.cxx
parent6fc2bd0094a23aafadeef3f4a8c2803d621a588d (diff)
cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
Diffstat (limited to 'io/source/TextOutputStream/TextOutputStream.cxx')
-rw-r--r--io/source/TextOutputStream/TextOutputStream.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx
index 6c1988ecaab4..7754ec5aa1fa 100644
--- a/io/source/TextOutputStream/TextOutputStream.cxx
+++ b/io/source/TextOutputStream/TextOutputStream.cxx
@@ -72,28 +72,28 @@ public:
// Methods XTextOutputStream
virtual void SAL_CALL writeString( const OUString& aString )
- throw(IOException, RuntimeException);
+ throw(IOException, RuntimeException, std::exception);
virtual void SAL_CALL setEncoding( const OUString& Encoding )
- throw(RuntimeException);
+ throw(RuntimeException, std::exception);
// Methods XOutputStream
virtual void SAL_CALL writeBytes( const Sequence< sal_Int8 >& aData )
- throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException);
+ throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception);
virtual void SAL_CALL flush( )
- throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException);
+ throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception);
virtual void SAL_CALL closeOutput( )
- throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException);
+ throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception);
// Methods XActiveDataSource
virtual void SAL_CALL setOutputStream( const Reference< XOutputStream >& aStream )
- throw(RuntimeException);
+ throw(RuntimeException, std::exception);
virtual Reference< XOutputStream > SAL_CALL getOutputStream( )
- throw(RuntimeException);
+ throw(RuntimeException, std::exception);
// Methods XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw();
- virtual Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw();
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw();
+ virtual OUString SAL_CALL getImplementationName() throw(std::exception);
+ virtual Sequence< OUString > SAL_CALL getSupportedServiceNames(void) throw(std::exception);
+ virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw(std::exception);
};
OTextOutputStream::OTextOutputStream()
@@ -163,7 +163,7 @@ Sequence<sal_Int8> OTextOutputStream::implConvert( const OUString& rSource )
// XTextOutputStream
void OTextOutputStream::writeString( const OUString& aString )
- throw(IOException, RuntimeException)
+ throw(IOException, RuntimeException, std::exception)
{
checkOutputStream();
if( !mbEncodingInitialized )
@@ -179,7 +179,7 @@ void OTextOutputStream::writeString( const OUString& aString )
}
void OTextOutputStream::setEncoding( const OUString& Encoding )
- throw(RuntimeException)
+ throw(RuntimeException, std::exception)
{
OString aOEncodingStr = OUStringToOString( Encoding, RTL_TEXTENCODING_ASCII_US );
rtl_TextEncoding encoding = rtl_getTextEncodingFromMimeCharset( aOEncodingStr.getStr() );
@@ -195,21 +195,21 @@ void OTextOutputStream::setEncoding( const OUString& Encoding )
// XOutputStream
void OTextOutputStream::writeBytes( const Sequence< sal_Int8 >& aData )
- throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
+ throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
checkOutputStream();
mxStream->writeBytes( aData );
}
void OTextOutputStream::flush( )
- throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
+ throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
checkOutputStream();
mxStream->flush();
}
void OTextOutputStream::closeOutput( )
- throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException)
+ throw(NotConnectedException, BufferSizeExceededException, IOException, RuntimeException, std::exception)
{
checkOutputStream();
mxStream->closeOutput();
@@ -230,13 +230,13 @@ void OTextOutputStream::checkOutputStream()
// XActiveDataSource
void OTextOutputStream::setOutputStream( const Reference< XOutputStream >& aStream )
- throw(RuntimeException)
+ throw(RuntimeException, std::exception)
{
mxStream = aStream;
}
Reference< XOutputStream > OTextOutputStream::getOutputStream()
- throw(RuntimeException)
+ throw(RuntimeException, std::exception)
{
return mxStream;
}
@@ -261,17 +261,17 @@ Sequence< OUString > TextOutputStream_getSupportedServiceNames()
return seqNames;
}
-OUString OTextOutputStream::getImplementationName() throw()
+OUString OTextOutputStream::getImplementationName() throw(std::exception)
{
return TextOutputStream_getImplementationName();
}
-sal_Bool OTextOutputStream::supportsService(const OUString& ServiceName) throw()
+sal_Bool OTextOutputStream::supportsService(const OUString& ServiceName) throw(std::exception)
{
return cppu::supportsService(this, ServiceName);
}
-Sequence< OUString > OTextOutputStream::getSupportedServiceNames(void) throw()
+Sequence< OUString > OTextOutputStream::getSupportedServiceNames(void) throw(std::exception)
{
return TextOutputStream_getSupportedServiceNames();
}