diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-05-04 15:51:56 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-05-04 15:52:57 +0200 |
commit | 135c63c8f9cc363c0895542b0f3bed48b61ea836 (patch) | |
tree | 5afa3bcc304e246b38058c2ad7b0d1fd1e76a05f /io/test/stm | |
parent | c48fe716225b1b784d657685396b6cf5fee4fc3d (diff) |
fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
Diffstat (limited to 'io/test/stm')
-rw-r--r-- | io/test/stm/datatest.cxx | 6 | ||||
-rw-r--r-- | io/test/stm/marktest.cxx | 4 | ||||
-rw-r--r-- | io/test/stm/pipetest.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx index 4504403a4231..7a54cd234209 100644 --- a/io/test/stm/datatest.cxx +++ b/io/test/stm/datatest.cxx @@ -349,7 +349,7 @@ void ODataStreamTest::testSimple( const Reference < XDataInputStream > &rInput Reference < XInterface > SAL_CALL ODataStreamTest_CreateInstance( const Reference < XMultiServiceFactory > & rSMgr ) throw(Exception) { ODataStreamTest *p = new ODataStreamTest( rSMgr ); - return Reference < XInterface > ( SAL_STATIC_CAST( OWeakObject * , p ) ); + return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) ); } Sequence<OUString> ODataStreamTest_getSupportedServiceNames( int i) throw () @@ -627,7 +627,7 @@ Reference < XInterface > SAL_CALL OMyPersistObject_CreateInstance( throw(Exception) { MyPersistObject *p = new MyPersistObject( ); - return Reference < XInterface > ( SAL_STATIC_CAST( OWeakObject * , p ) ); + return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) ); } Sequence<OUString> OMyPersistObject_getSupportedServiceNames( ) throw () @@ -1077,7 +1077,7 @@ void OObjectStreamTest::testObject( const Reference< XObjectOutputStream > Reference < XInterface > SAL_CALL OObjectStreamTest_CreateInstance( const Reference < XMultiServiceFactory > & rSMgr ) throw(Exception) { OObjectStreamTest *p = new OObjectStreamTest( rSMgr ); - return Reference < XInterface > ( SAL_STATIC_CAST( OWeakObject * , p ) ); + return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) ); } Sequence<OUString> OObjectStreamTest_getSupportedServiceNames( int i) throw () diff --git a/io/test/stm/marktest.cxx b/io/test/stm/marktest.cxx index ab1d771878ef..d0d9976e49c6 100644 --- a/io/test/stm/marktest.cxx +++ b/io/test/stm/marktest.cxx @@ -380,7 +380,7 @@ void OMarkableOutputStreamTest::testSimple( const Reference< XOutputStream > Reference < XInterface > SAL_CALL OMarkableOutputStreamTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception) { OMarkableOutputStreamTest *p = new OMarkableOutputStreamTest( rSMgr ); - return Reference < XInterface > ( SAL_STATIC_CAST( OWeakObject * , p ) ); + return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) ); } @@ -652,7 +652,7 @@ void OMarkableInputStreamTest::testSimple( const Reference< XOutputStream > Reference < XInterface > SAL_CALL OMarkableInputStreamTest_CreateInstance( const Reference< XMultiServiceFactory > & rSMgr ) throw(Exception) { OMarkableInputStreamTest *p = new OMarkableInputStreamTest( rSMgr ); - return Reference < XInterface > ( SAL_STATIC_CAST( OWeakObject * , p ) ); + return Reference < XInterface > ( (static_cast< OWeakObject * >(p)) ); } diff --git a/io/test/stm/pipetest.cxx b/io/test/stm/pipetest.cxx index ebb89e69c117..c67ff9a86bf1 100644 --- a/io/test/stm/pipetest.cxx +++ b/io/test/stm/pipetest.cxx @@ -413,7 +413,7 @@ void OPipeTest::testMultithreading( const Reference < XInterface > &r ) Reference < XInterface > SAL_CALL OPipeTest_CreateInstance( const Reference< XMultiServiceFactory> & rSMgr ) throw (Exception) { OPipeTest *p = new OPipeTest( rSMgr ); - Reference< XInterface > x ( SAL_STATIC_CAST( OWeakObject * , p ) ); + Reference< XInterface > x ( (static_cast< OWeakObject * >(p)) ); return x; } |