summaryrefslogtreecommitdiff
path: root/include/comphelper/types.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-16 22:51:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-17 17:55:19 +0100
commit05f742d28b3786f44781af5b069c05c16b84decd (patch)
treedacb340f99ad4e47d20557eee04e6f69f5d15721 /include/comphelper/types.hxx
parentfaced6b5f72b096800a232749cce6b38a76d5bac (diff)
comphelper: sal_Bool -> bool
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
Diffstat (limited to 'include/comphelper/types.hxx')
-rw-r--r--include/comphelper/types.hxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/comphelper/types.hxx b/include/comphelper/types.hxx
index b57ff3595c89..3adf5cc290d6 100644
--- a/include/comphelper/types.hxx
+++ b/include/comphelper/types.hxx
@@ -51,20 +51,20 @@ namespace comphelper
The comparison is deep, means if one of the Any's contains an Any which contains an Any ..., this is resolved <br/>
Other types recognized currently : FontDescriptor, ::com::sun::star::util::Date/Tim/DateTime, staruno::Sequence<sal_Int8>
*/
- COMPHELPER_DLLPUBLIC sal_Bool compare(const staruno::Any& rLeft, const staruno::Any& rRight);
+ COMPHELPER_DLLPUBLIC bool compare(const staruno::Any& rLeft, const staruno::Any& rRight);
//-------------------------------------------------------------------------
/** compare two FontDescriptor's
*/
- COMPHELPER_DLLPUBLIC sal_Bool operator ==(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight);
- inline sal_Bool operator !=(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight)
+ COMPHELPER_DLLPUBLIC bool operator ==(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight);
+ inline bool operator !=(const starawt::FontDescriptor& _rLeft, const starawt::FontDescriptor& _rRight)
{
return !(_rLeft == _rRight);
}
//-------------------------------------------------------------------------
/// returns sal_True if objects of the types given are "compatible"
- COMPHELPER_DLLPUBLIC sal_Bool isAssignableFrom(const staruno::Type& _rAssignable, const staruno::Type& _rFrom);
+ COMPHELPER_DLLPUBLIC bool isAssignableFrom(const staruno::Type& _rAssignable, const staruno::Type& _rFrom);
//-------------------------------------------------------------------------
/** just a small shortcut ...
@@ -75,7 +75,7 @@ namespace comphelper
So this function is nearly senseless ....
*/
template <class TYPE>
- sal_Bool isA(const staruno::Type& _rType, TYPE* pDummy)
+ bool isA(const staruno::Type& _rType, TYPE* pDummy)
{
return _rType.equals(cppu::getTypeFavourUnsigned(pDummy));
}
@@ -85,7 +85,7 @@ namespace comphelper
same comment as for the other isA ....
*/
template <class TYPE>
- sal_Bool isA(const staruno::Any& _rVal, TYPE* pDummy)
+ bool isA(const staruno::Any& _rVal, TYPE* pDummy)
{
return _rVal.getValueType().equals(
cppu::getTypeFavourUnsigned(pDummy));
@@ -95,7 +95,7 @@ namespace comphelper
/** check if a type you have at hand at runtime is equal to another type you have at compile time
*/
template <class TYPE>
- sal_Bool isAReference(const staruno::Any& _rVal, TYPE*)
+ bool isAReference(const staruno::Any& _rVal, TYPE*)
{
return _rVal.getValueType().equals(
cppu::getTypeFavourUnsigned(
@@ -117,7 +117,7 @@ namespace comphelper
}
//-------------------------------------------------------------------------
template <class TYPE>
- sal_Bool getImplementation(TYPE*& _pObject, const staruno::Reference< staruno::XInterface >& _rxIFace)
+ bool getImplementation(TYPE*& _pObject, const staruno::Reference< staruno::XInterface >& _rxIFace)
{
_pObject = NULL;
staruno::Reference< starlang::XUnoTunnel > xTunnel(_rxIFace, staruno::UNO_QUERY);
@@ -153,16 +153,16 @@ namespace comphelper
COMPHELPER_DLLPUBLIC double getDouble(const staruno::Any& _rAny);
COMPHELPER_DLLPUBLIC float getFloat(const staruno::Any& _rAny);
COMPHELPER_DLLPUBLIC OUString getString(const staruno::Any& _rAny);
- COMPHELPER_DLLPUBLIC sal_Bool getBOOL(const staruno::Any& _rAny);
+ COMPHELPER_DLLPUBLIC bool getBOOL(const staruno::Any& _rAny);
COMPHELPER_DLLPUBLIC sal_Int32 getEnumAsINT32(const staruno::Any& _rAny) throw(starlang::IllegalArgumentException);
//= replacement of some former UsrAny.setXXX methods - can be used with rvalues
- inline void setBOOL(staruno::Any& _rAny, sal_Bool _b)
+ inline void setBOOL(staruno::Any& _rAny, bool _b)
{ _rAny.setValue(&_b, ::getBooleanCppuType()); }
//= extension of ::cppu::makeAny()
- inline staruno::Any makeBoolAny(sal_Bool _b)
+ inline staruno::Any makeBoolAny(bool _b)
{ return staruno::Any(&_b, ::getBooleanCppuType()); }
//.........................................................................