summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-05-04 15:51:56 +0200
committerThomas Arnhold <thomas@arnhold.org>2012-05-04 15:52:57 +0200
commit135c63c8f9cc363c0895542b0f3bed48b61ea836 (patch)
tree5afa3bcc304e246b38058c2ad7b0d1fd1e76a05f /ucbhelper
parentc48fe716225b1b784d657685396b6cf5fee4fc3d (diff)
fdo#48253 Expand SAL_STATIC_CAST and SAL_CONST_CAST
Change-Id: I50f0887ceb4517d7ef234f970ca2ba679d533382
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/inc/ucbhelper/macros.hxx240
-rw-r--r--ucbhelper/source/provider/fd_inputstream.cxx4
2 files changed, 122 insertions, 122 deletions
diff --git a/ucbhelper/inc/ucbhelper/macros.hxx b/ucbhelper/inc/ucbhelper/macros.hxx
index 302be2132f05..4fa1c817344e 100644
--- a/ucbhelper/inc/ucbhelper/macros.hxx
+++ b/ucbhelper/inc/ucbhelper/macros.hxx
@@ -100,210 +100,210 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
#define XINTERFACE_IMPL_1( Class, Ifc1 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( Ifc1*, this ) \
+ (static_cast< Ifc1* >(this)) \
QUERYINTERFACE_IMPL_END
// 2 interfaces implemented
#define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( Ifc1*, this ), \
- SAL_STATIC_CAST( Ifc2*, this ) \
+ (static_cast< Ifc1* >(this)), \
+ (static_cast< Ifc2* >(this)) \
QUERYINTERFACE_IMPL_END
// 3 interfaces implemented
#define XINTERFACE_IMPL_3( Class, Ifc1, Ifc2, Ifc3 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( Ifc1*, this ), \
- SAL_STATIC_CAST( Ifc2*, this ), \
- SAL_STATIC_CAST( Ifc3*, this ) \
+ (static_cast< Ifc1* >(this)), \
+ (static_cast< Ifc2* >(this)), \
+ (static_cast< Ifc3* >(this)) \
QUERYINTERFACE_IMPL_END
// 4 interfaces implemented
#define XINTERFACE_IMPL_4( Class, Ifc1, Ifc2, Ifc3, Ifc4 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( Ifc1*, this ), \
- SAL_STATIC_CAST( Ifc2*, this ), \
- SAL_STATIC_CAST( Ifc3*, this ), \
- SAL_STATIC_CAST( Ifc4*, this ) \
+ (static_cast< Ifc1* >(this)), \
+ (static_cast< Ifc2* >(this)), \
+ (static_cast< Ifc3* >(this)), \
+ (static_cast< Ifc4* >(this)) \
QUERYINTERFACE_IMPL_END
// 5 interfaces implemented
#define XINTERFACE_IMPL_5( Class, Ifc1, Ifc2, Ifc3, Ifc4, Ifc5 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( Ifc1*, this ), \
- SAL_STATIC_CAST( Ifc2*, this ), \
- SAL_STATIC_CAST( Ifc3*, this ), \
- SAL_STATIC_CAST( Ifc4*, this ), \
- SAL_STATIC_CAST( Ifc5*, this ) \
+ (static_cast< Ifc1* >(this)), \
+ (static_cast< Ifc2* >(this)), \
+ (static_cast< Ifc3* >(this)), \
+ (static_cast< Ifc4* >(this)), \
+ (static_cast< Ifc5* >(this)) \
QUERYINTERFACE_IMPL_END
// 6 interfaces implemented
#define XINTERFACE_IMPL_6( Class,I1,I2,I3,I4,I5,I6 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)) \
QUERYINTERFACE_IMPL_END
// 7 interfaces implemented
#define XINTERFACE_IMPL_7( Class,I1,I2,I3,I4,I5,I6,I7 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)) \
QUERYINTERFACE_IMPL_END
// 8 interfaces implemented
#define XINTERFACE_IMPL_8( Class,I1,I2,I3,I4,I5,I6,I7,I8 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)) \
QUERYINTERFACE_IMPL_END
// 9 interfaces implemented
#define XINTERFACE_IMPL_9( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)) \
QUERYINTERFACE_IMPL_END
// 10 interfaces implemented
#define XINTERFACE_IMPL_10( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)), \
+ (static_cast< I10* >(this)) \
QUERYINTERFACE_IMPL_END
// 11 interfaces implemented
#define XINTERFACE_IMPL_11( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)), \
+ (static_cast< I10* >(this)), \
+ (static_cast< I11* >(this)) \
QUERYINTERFACE_IMPL_END
// 12 interfaces implemented
#define XINTERFACE_IMPL_12( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)), \
+ (static_cast< I10* >(this)), \
+ (static_cast< I11* >(this)), \
+ (static_cast< I12* >(this)) \
QUERYINTERFACE_IMPL_END
// 13 interfaces implemented
#define XINTERFACE_IMPL_13( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ), \
- SAL_STATIC_CAST( I13*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)), \
+ (static_cast< I10* >(this)), \
+ (static_cast< I11* >(this)), \
+ (static_cast< I12* >(this)), \
+ (static_cast< I13* >(this)) \
QUERYINTERFACE_IMPL_END
// 14 interfaces implemented
#define XINTERFACE_IMPL_14( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ), \
- SAL_STATIC_CAST( I13*, this ), \
- SAL_STATIC_CAST( I14*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)), \
+ (static_cast< I10* >(this)), \
+ (static_cast< I11* >(this)), \
+ (static_cast< I12* >(this)), \
+ (static_cast< I13* >(this)), \
+ (static_cast< I14* >(this)) \
QUERYINTERFACE_IMPL_END
// 15 interfaces implemented
#define XINTERFACE_IMPL_15( Class,I1,I2,I3,I4,I5,I6,I7,I8,I9,I10,I11,I12,I13,I14,I15 ) \
XINTERFACE_COMMON_IMPL( Class ) \
QUERYINTERFACE_IMPL_START( Class ) \
- SAL_STATIC_CAST( I1*, this ), \
- SAL_STATIC_CAST( I2*, this ), \
- SAL_STATIC_CAST( I3*, this ), \
- SAL_STATIC_CAST( I4*, this ), \
- SAL_STATIC_CAST( I5*, this ), \
- SAL_STATIC_CAST( I6*, this ), \
- SAL_STATIC_CAST( I7*, this ), \
- SAL_STATIC_CAST( I8*, this ), \
- SAL_STATIC_CAST( I9*, this ), \
- SAL_STATIC_CAST( I10*, this ), \
- SAL_STATIC_CAST( I11*, this ), \
- SAL_STATIC_CAST( I12*, this ), \
- SAL_STATIC_CAST( I13*, this ), \
- SAL_STATIC_CAST( I14*, this ), \
- SAL_STATIC_CAST( I15*, this ) \
+ (static_cast< I1* >(this)), \
+ (static_cast< I2* >(this)), \
+ (static_cast< I3* >(this)), \
+ (static_cast< I4* >(this)), \
+ (static_cast< I5* >(this)), \
+ (static_cast< I6* >(this)), \
+ (static_cast< I7* >(this)), \
+ (static_cast< I8* >(this)), \
+ (static_cast< I9* >(this)), \
+ (static_cast< I10* >(this)), \
+ (static_cast< I11* >(this)), \
+ (static_cast< I12* >(this)), \
+ (static_cast< I13* >(this)), \
+ (static_cast< I14* >(this)), \
+ (static_cast< I15* >(this)) \
QUERYINTERFACE_IMPL_END
//=========================================================================
diff --git a/ucbhelper/source/provider/fd_inputstream.cxx b/ucbhelper/source/provider/fd_inputstream.cxx
index d7f0be087615..cc7cdad266e6 100644
--- a/ucbhelper/source/provider/fd_inputstream.cxx
+++ b/ucbhelper/source/provider/fd_inputstream.cxx
@@ -66,8 +66,8 @@ namespace ucbhelper
)
{
Any aRet = ::cppu::queryInterface(rType,
- SAL_STATIC_CAST( XInputStream*,this ),
- SAL_STATIC_CAST( XSeekable*,this ) );
+ (static_cast< XInputStream* >(this)),
+ (static_cast< XSeekable* >(this)) );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}