summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-18 14:38:54 +0200
committerNoel Grandin <noel@peralex.com>2014-09-22 12:24:23 +0200
commit5139fad429cc70c5c235714e1e9530c28f9b722d (patch)
tree619ca6750576d2a10d7e3d12ff1f431b7bfe4d20 /include/comphelper
parent4e0744b002af73475b5088aec1e6350974ba1673 (diff)
loplugin: cstylecast
Change-Id: I84873c9f84651dc8a1337f37c63020b461314e1b
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/extract.hxx4
-rw-r--r--include/comphelper/sequenceasvector.hxx4
-rw-r--r--include/comphelper/uno3.hxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/comphelper/extract.hxx b/include/comphelper/extract.hxx
index 9a788c795870..3ce61d92b7ce 100644
--- a/include/comphelper/extract.hxx
+++ b/include/comphelper/extract.hxx
@@ -75,7 +75,7 @@ template< typename E >
inline void SAL_CALL any2enum( E & eRet, const ::com::sun::star::uno::Any & rAny )
throw( ::com::sun::star::lang::IllegalArgumentException )
{
- // check for type save enum
+ // check for typesafe enum
if (! (rAny >>= eRet))
{
// if not enum, maybe integer?
@@ -83,7 +83,7 @@ inline void SAL_CALL any2enum( E & eRet, const ::com::sun::star::uno::Any & rAny
if (! (rAny >>= nValue))
throw ::com::sun::star::lang::IllegalArgumentException();
- eRet = (E)nValue;
+ eRet = static_cast<E>(nValue);
}
}
diff --git a/include/comphelper/sequenceasvector.hxx b/include/comphelper/sequenceasvector.hxx
index 01d6b5cbb2d4..48b9e1a16f01 100644
--- a/include/comphelper/sequenceasvector.hxx
+++ b/include/comphelper/sequenceasvector.hxx
@@ -177,7 +177,7 @@ class SequenceAsVector : public ::std::vector< TElementType >
*/
void operator>>(::com::sun::star::uno::Sequence< TElementType >& lDestination) const
{
- sal_Int32 c = (sal_Int32)this->size();
+ sal_Int32 c = static_cast<sal_Int32>(this->size());
lDestination.realloc(c);
TElementType* pDestination = lDestination.getArray();
@@ -201,7 +201,7 @@ class SequenceAsVector : public ::std::vector< TElementType >
*/
void operator>>(::com::sun::star::uno::Any& aDestination) const
{
- sal_Int32 c = (sal_Int32)this->size();
+ sal_Int32 c = static_cast<sal_Int32>(this->size());
::com::sun::star::uno::Sequence< TElementType > lDestination(c);
TElementType* pDestination = lDestination.getArray();
diff --git a/include/comphelper/uno3.hxx b/include/comphelper/uno3.hxx
index e853590088a1..b6e2dcd60cc3 100644
--- a/include/comphelper/uno3.hxx
+++ b/include/comphelper/uno3.hxx
@@ -187,7 +187,7 @@ namespace comphelper
::com::sun::star::uno::Any aCheck = _rxAggregate->queryAggregation(
cppu::UnoType<iface>::get());
if (aCheck.hasValue())
- _rxOut = *(::com::sun::star::uno::Reference<iface>*)aCheck.getValue();
+ _rxOut = *reinterpret_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue());
}
return _rxOut.is();
}
@@ -208,7 +208,7 @@ namespace comphelper
cppu::UnoType<iface>::get());
if(aCheck.hasValue())
{
- _rxOut = *(::com::sun::star::uno::Reference<iface>*)aCheck.getValue();
+ _rxOut = *reinterpret_cast<const ::com::sun::star::uno::Reference<iface>*>(aCheck.getValue());
return _rxOut.is();
}
}