diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-24 12:26:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-30 08:43:41 +0200 |
commit | 1417061d1b2c110e7e690523a544b58e7ffd05c0 (patch) | |
tree | 11822ac4180dbaa97946d790f21ae2d549e2e24e /stoc/source/corereflection/base.hxx | |
parent | 4c73963171b1a7a837e4bfc75ae4e0303af7d117 (diff) |
stoc: sal_Bool->bool
Change-Id: Id5aaa3ddfe2cfacbe1bddcdeccb9e775ad84d858
Diffstat (limited to 'stoc/source/corereflection/base.hxx')
-rw-r--r-- | stoc/source/corereflection/base.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index 683809f0aaf0..29935bdb5ef2 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -371,7 +371,7 @@ public: // coerces to type descr pTo else queries for it: the interface pointer is returned via rDest // ## type to XidlClass coercion possible -inline sal_Bool extract( +inline bool extract( const Any & rObj, typelib_InterfaceTypeDescription * pTo, Reference< XInterface > & rDest, IdlReflectionServiceImpl * pRefl ) @@ -380,7 +380,7 @@ inline sal_Bool extract( if (0 != pTo) { if (! rObj.hasValue()) - return sal_True; + return true; if (rObj.getValueTypeClass() == TypeClass_INTERFACE) { return ::uno_type_assignData( @@ -396,10 +396,10 @@ inline sal_Bool extract( return rDest.is(); } } - return sal_False; + return false; } -inline sal_Bool coerce_assign( +inline bool coerce_assign( void * pDest, typelib_TypeDescription * pTD, const Any & rSource, IdlReflectionServiceImpl * pRefl ) { @@ -413,9 +413,9 @@ inline sal_Bool coerce_assign( *(XInterface **)pDest = xVal.get(); if (*(XInterface **)pDest) (*(XInterface **)pDest)->acquire(); - return sal_True; + return true; } - return sal_False; + return false; } else if (pTD->eTypeClass == typelib_TypeClass_ANY) { |