main/cppu/inc/cppu/Map.hxx
// Problem: any gets assigned to something, acquire/releases may be called in wrong env.
any gets assigned to something, acquire/releases may be called in wrong env.
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)
	{
		cssu::Mapping curr2outer(cssu::Environment::getCurrent(), outerEnv);
		uno_any_destruct(res, (uno_ReleaseFunc)cssu::cpp_release);
		uno_type_any_constructAndConvert(
			res,
			const_cast<void *>(any.getValue()),
			any.getValueTypeRef(),
			curr2outer.get());
	}
inline void mapOutAny ( cssu :: Any const & any , cssu :: Any * res , cssu :: Environment const & outerEnv ) { cssu :: Mapping curr2outer ( cssu :: Environment :: getCurrent ( ) , outerEnv ) ; uno_any_destruct ( res , ( uno_ReleaseFunc ) cssu :: cpp_release ) ; uno_type_any_constructAndConvert ( res , const_cast < void * > ( any . getValue ( ) ) , any . getValueTypeRef ( ) , curr2outer . get ( ) ) ; }
Problem: any gets assigned to something, acquire/releases may be called in wrong env.
Problem : any gets assigned to something acquire / releases may be called in wrong env .