diff options
author | Stefan Weiberg <stefan.weiberg@germandev.org> | 2014-09-01 09:20:45 +0000 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-09-02 04:06:58 -0500 |
commit | a4b9bfb993e9d724431befd1295b107f7758c8fd (patch) | |
tree | d609eef1ab3ea648c109e72acf896ac7cb09cf3f /include/cppu/Map.hxx | |
parent | 2ec55fd6a1f79e19bb3654953919260a9ff29ece (diff) |
Related fdo#82088: removing and shortening aliases
Change-Id: Iebd9124daffe98b1e38dfa71d8b11f2452e3ddaa
Reviewed-on: https://gerrit.libreoffice.org/11226
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'include/cppu/Map.hxx')
-rw-r--r-- | include/cppu/Map.hxx | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/include/cppu/Map.hxx b/include/cppu/Map.hxx index 2274c9e87d0f..2b6397918c3f 100644 --- a/include/cppu/Map.hxx +++ b/include/cppu/Map.hxx @@ -23,8 +23,6 @@ #include <uno/mapping.hxx> -namespace cssu = com::sun::star::uno; - namespace cppu { /** Helpers for mapping objects relative to the current environment. @@ -38,11 +36,11 @@ namespace cppu @return the mapped object @since UDK 3.2.7 */ - template<class T> inline T * mapOut(T * pT, cssu::Environment const & outerEnv) + template<class T> inline T * mapOut(T * pT, css::uno::Environment const & outerEnv) { - cssu::Mapping curr2outer(cssu::Environment::getCurrent(), outerEnv); + css::uno::Mapping curr2outer(css::uno::Environment::getCurrent(), outerEnv); - return reinterpret_cast<T *>(curr2outer.mapInterface(pT, getCppuType((cssu::Reference<T> *)NULL))); + return reinterpret_cast<T *>(curr2outer.mapInterface(pT, getCppuType((css::uno::Reference<T> *)NULL))); } @@ -53,11 +51,11 @@ namespace cppu @return the mapped object @since UDK 3.2.7 */ - template<class T> inline T * mapIn(T * pT, cssu::Environment const & outerEnv) + template<class T> inline T * mapIn(T * pT, css::uno::Environment const & outerEnv) { - cssu::Mapping outer2curr(outerEnv, cssu::Environment::getCurrent()); + css::uno::Mapping outer2curr(outerEnv, css::uno::Environment::getCurrent()); - return reinterpret_cast<T *>(outer2curr.mapInterface(pT, getCppuType((cssu::Reference<T> *)NULL))); + return reinterpret_cast<T *>(outer2curr.mapInterface(pT, getCppuType((css::uno::Reference<T> *)NULL))); } @@ -69,11 +67,11 @@ namespace cppu @since UDK 3.2.7 */ // Problem: any gets assigned to something, acquire/releases may be called in wrong env. - inline void mapOutAny(cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv) + inline void mapOutAny(css::uno::Any const & any, css::uno::Any * res, css::uno::Environment const & outerEnv) { - cssu::Mapping curr2outer(cssu::Environment::getCurrent(), outerEnv); + css::uno::Mapping curr2outer(css::uno::Environment::getCurrent(), outerEnv); - uno_any_destruct(res, (uno_ReleaseFunc)cssu::cpp_release); + uno_any_destruct(res, (uno_ReleaseFunc)css::uno::cpp_release); uno_type_any_constructAndConvert( res, const_cast<void *>(any.getValue()), @@ -89,11 +87,11 @@ namespace cppu @param outerEnv the source environment @since UDK 3.2.7 */ - inline void mapInAny(cssu::Any const & any, cssu::Any * res, cssu::Environment const & outerEnv) + inline void mapInAny(css::uno::Any const & any, css::uno::Any * res, css::uno::Environment const & outerEnv) { - cssu::Mapping outer2curr(outerEnv, cssu::Environment::getCurrent()); + css::uno::Mapping outer2curr(outerEnv, css::uno::Environment::getCurrent()); - uno_any_destruct(res, (uno_ReleaseFunc)cssu::cpp_release); + uno_any_destruct(res, (uno_ReleaseFunc)css::uno::cpp_release); uno_type_any_constructAndConvert( res, const_cast<void *>(any.getValue()), |