diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-18 14:38:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-22 12:24:23 +0200 |
commit | 5139fad429cc70c5c235714e1e9530c28f9b722d (patch) | |
tree | 619ca6750576d2a10d7e3d12ff1f431b7bfe4d20 /include/comphelper/extract.hxx | |
parent | Unwind one level of cluttering indirection (diff) | |
download | core-5139fad429cc70c5c235714e1e9530c28f9b722d.tar.gz core-5139fad429cc70c5c235714e1e9530c28f9b722d.zip |
loplugin: cstylecast
Change-Id: I84873c9f84651dc8a1337f37c63020b461314e1b
Diffstat (limited to 'include/comphelper/extract.hxx')
-rw-r--r-- | include/comphelper/extract.hxx | 4 |
1 files changed, 2 insertions, 2 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); } } |