diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-29 11:18:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-30 08:43:51 +0200 |
commit | dd8d5e5795358d732a9f7a8af7c35f662321e332 (patch) | |
tree | 9983c2a5f0bc3f2c29133aa57e4ceb510eb68a11 /include | |
parent | 22f2cf3ccc6d0c9ba2c2860735e789d6b3a25f72 (diff) |
improve loplugin:stringconstant
to find more places we can elide the OUString() constructor at call
sites
Change-Id: Ie09f3c61f2c4b4959c97dc98ebcbaf7c51d5d713
Reviewed-on: https://gerrit.libreoffice.org/71514
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/uno/mapping.hxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/uno/mapping.hxx b/include/uno/mapping.hxx index 07518b0fcf3c..698733840058 100644 --- a/include/uno/mapping.hxx +++ b/include/uno/mapping.hxx @@ -317,9 +317,7 @@ template< class C > SAL_DEPRECATED("use uno_Mapping") inline bool mapToCpp( Reference< C > * ppRet, uno_Interface * pUnoI ) { - Mapping aMapping( - ::rtl::OUString( UNO_LB_UNO ), - ::rtl::OUString( CPPU_CURRENT_LANGUAGE_BINDING_NAME ) ); + Mapping aMapping( UNO_LB_UNO, CPPU_CURRENT_LANGUAGE_BINDING_NAME ); OSL_ASSERT( aMapping.is() ); aMapping.mapInterface( reinterpret_cast<void **>(ppRet), pUnoI, ::cppu::getTypeFavourUnsigned( ppRet ) ); @@ -341,9 +339,7 @@ template< class C > SAL_DEPRECATED("use uno_Mapping") inline bool mapToUno( uno_Interface ** ppRet, const Reference< C > & x ) { - Mapping aMapping( - ::rtl::OUString( CPPU_CURRENT_LANGUAGE_BINDING_NAME ), - ::rtl::OUString( UNO_LB_UNO ) ); + Mapping aMapping( CPPU_CURRENT_LANGUAGE_BINDING_NAME, UNO_LB_UNO ); OSL_ASSERT( aMapping.is() ); aMapping.mapInterface( reinterpret_cast<void **>(ppRet), x.get(), ::cppu::getTypeFavourUnsigned( &x ) ); |