Kaydet (Commit) 7b57e37c authored tarafından Luboš Luňák's avatar Luboš Luňák

there should be no support for OString in Any

Change-Id: I53d047381a89d52c43378dd304ba6e0774f59968
üst 5db72152
......@@ -190,14 +190,6 @@ inline Any SAL_CALL makeAny( bool const & value ) SAL_THROW(())
//__________________________________________________________________________________________________
#ifdef RTL_FAST_STRING
template< class C1, class C2 >
inline Any SAL_CALL makeAny( const rtl::OStringConcat< C1, C2 >& value ) SAL_THROW(())
{
const rtl::OString str( value );
return Any( &str, ::cppu::getTypeFavourUnsigned(&str) );
}
//__________________________________________________________________________________________________
template< class C1, class C2 >
inline Any SAL_CALL makeAny( const rtl::OUStringConcat< C1, C2 >& value ) SAL_THROW(())
{
const rtl::OUString str( value );
......@@ -228,18 +220,6 @@ inline void SAL_CALL operator <<= ( Any & rAny, bool const & value )
//______________________________________________________________________________
#ifdef RTL_FAST_STRING
template< class C1, class C2 >
inline void SAL_CALL operator <<= ( Any & rAny, const rtl::OStringConcat< C1, C2 >& value )
SAL_THROW(())
{
const rtl::OString str( value );
const Type & rType = ::cppu::getTypeFavourUnsigned(&str);
::uno_type_any_assign(
&rAny, const_cast< rtl::OString * >( &str ), rType.getTypeLibType(),
(uno_AcquireFunc)cpp_acquire, (uno_ReleaseFunc)cpp_release );
}
//______________________________________________________________________________
template< class C1, class C2 >
inline void SAL_CALL operator <<= ( Any & rAny, const rtl::OUStringConcat< C1, C2 >& value )
SAL_THROW(())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment