summaryrefslogtreecommitdiff
path: root/include/uno/mapping.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:27:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:55 +0100
commit715cabb4d4bdaa5d764ee9461345a02b527b9f5a (patch)
treec0d9f9b2838a4f08708f04ad93a9d05740cc9f60 /include/uno/mapping.hxx
parentb4af1664402ce1008e168d18e5e10b5d8f946f1c (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I5bd7c5251daeeb6e0e98ef23588b2e6d7e580b78
Diffstat (limited to 'include/uno/mapping.hxx')
-rw-r--r--include/uno/mapping.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/uno/mapping.hxx b/include/uno/mapping.hxx
index 6c950930d3df..9a7220d3a510 100644
--- a/include/uno/mapping.hxx
+++ b/include/uno/mapping.hxx
@@ -98,7 +98,7 @@ public:
@param pMapping another mapping
*/
- inline Mapping( uno_Mapping * pMapping = 0 );
+ inline Mapping( uno_Mapping * pMapping = NULL );
/** Copy constructor.
@@ -136,7 +136,7 @@ public:
@return true if a mapping is set
*/
inline bool SAL_CALL is() const
- { return (_pMapping != 0); }
+ { return (_pMapping != NULL); }
/** Releases a set mapping.
*/
@@ -195,21 +195,21 @@ public:
inline Mapping::Mapping(
const ::rtl::OUString & rFrom, const ::rtl::OUString & rTo, const ::rtl::OUString & rAddPurpose )
- : _pMapping( 0 )
+ : _pMapping( NULL )
{
uno_getMappingByName( &_pMapping, rFrom.pData, rTo.pData, rAddPurpose.pData );
}
inline Mapping::Mapping(
uno_Environment * pFrom, uno_Environment * pTo, const ::rtl::OUString & rAddPurpose )
- : _pMapping( 0 )
+ : _pMapping( NULL )
{
uno_getMapping( &_pMapping, pFrom, pTo, rAddPurpose.pData );
}
inline Mapping::Mapping(
const Environment & rFrom, const Environment & rTo, const ::rtl::OUString & rAddPurpose )
- : _pMapping(0)
+ : _pMapping(NULL)
{
uno_getMapping( &_pMapping, rFrom.get(), rTo.get(), rAddPurpose.pData );
}
@@ -239,7 +239,7 @@ inline void Mapping::clear()
if (_pMapping)
{
(*_pMapping->release)( _pMapping );
- _pMapping = 0;
+ _pMapping = NULL;
}
}
@@ -256,7 +256,7 @@ inline Mapping & Mapping::operator = ( uno_Mapping * pMapping )
inline void Mapping::mapInterface(
void ** ppOut, void * pInterface, const css::uno::Type & rType ) const
{
- typelib_TypeDescription * pTD = 0;
+ typelib_TypeDescription * pTD = NULL;
TYPELIB_DANGER_GET( &pTD, rType.getTypeLibType() );
if (pTD)
{
@@ -268,7 +268,7 @@ inline void Mapping::mapInterface(
inline void * Mapping::mapInterface(
void * pInterface, typelib_InterfaceTypeDescription * pTypeDescr ) const
{
- void * pOut = 0;
+ void * pOut = NULL;
(*_pMapping->mapInterface)( _pMapping, &pOut, pInterface, pTypeDescr );
return pOut;
}
@@ -276,7 +276,7 @@ inline void * Mapping::mapInterface(
inline void * Mapping::mapInterface(
void * pInterface, const css::uno::Type & rType ) const
{
- void * pOut = 0;
+ void * pOut = NULL;
mapInterface( &pOut, pInterface, rType );
return pOut;
}
@@ -325,7 +325,7 @@ inline bool mapToUno( uno_Interface ** ppRet, const Reference< C > & x )
OSL_ASSERT( aMapping.is() );
aMapping.mapInterface(
reinterpret_cast<void **>(ppRet), x.get(), ::cppu::getTypeFavourUnsigned( &x ) );
- return (0 != *ppRet);
+ return (NULL != *ppRet);
}
}