include/com/sun/star/uno/Sequence.h | 8 ++++---- include/com/sun/star/uno/Sequence.hxx | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-)
New commits: commit 8b34be0852d8c8ae350d192980d825211e37f7ee Author: Stephan Bergmann <[email protected]> Date: Mon Nov 16 16:43:06 2015 +0100 Use injected class name Change-Id: I22bf0f7024538ea7a6c2c328a6647d3aeb478141 Reviewed-on: https://gerrit.libreoffice.org/20000 Tested-by: Jenkins <[email protected]> Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/include/com/sun/star/uno/Sequence.h b/include/com/sun/star/uno/Sequence.h index 4241851..d22bc1e 100644 --- a/include/com/sun/star/uno/Sequence.h +++ b/include/com/sun/star/uno/Sequence.h @@ -90,7 +90,7 @@ public: @param rSeq another sequence of same type */ - inline Sequence( const Sequence< E > & rSeq ); + inline Sequence( const Sequence & rSeq ); /** Constructor: Takes over ownership of given sequence. @@ -134,7 +134,7 @@ public: @param rSeq another sequence of same type @return this sequence */ - inline Sequence< E > & SAL_CALL operator = ( const Sequence< E > & rSeq ); + inline Sequence & SAL_CALL operator = ( const Sequence & rSeq ); /** Gets length of the sequence. @@ -224,14 +224,14 @@ public: @param rSeq another sequence of same type (right side) @return true if both sequences are equal, false otherwise */ - inline bool SAL_CALL operator == ( const Sequence< E > & rSeq ) const; + inline bool SAL_CALL operator == ( const Sequence & rSeq ) const; /** Unequality operator: Compares two sequences. @param rSeq another sequence of same type (right side) @return false if both sequences are equal, true otherwise */ - inline bool SAL_CALL operator != ( const Sequence< E > & rSeq ) const; + inline bool SAL_CALL operator != ( const Sequence & rSeq ) const; /** Reallocates sequence to new length. If the new length is smaller than the former, then upper elements will diff --git a/include/com/sun/star/uno/Sequence.hxx b/include/com/sun/star/uno/Sequence.hxx index 8b69039..ab2c6bf 100644 --- a/include/com/sun/star/uno/Sequence.hxx +++ b/include/com/sun/star/uno/Sequence.hxx @@ -56,7 +56,7 @@ inline Sequence< E >::Sequence() } template< class E > -inline Sequence< E >::Sequence( const Sequence< E > & rSeq ) +inline Sequence< E >::Sequence( const Sequence & rSeq ) { osl_atomic_increment( &rSeq._pSequence->nRefCount ); _pSequence = rSeq._pSequence; @@ -116,7 +116,7 @@ inline Sequence< E >::~Sequence() } template< class E > -inline Sequence< E > & Sequence< E >::operator = ( const Sequence< E > & rSeq ) +inline Sequence< E > & Sequence< E >::operator = ( const Sequence & rSeq ) { const Type & rType = ::cppu::getTypeFavourUnsigned( this ); ::uno_type_sequence_assign( @@ -125,20 +125,20 @@ inline Sequence< E > & Sequence< E >::operator = ( const Sequence< E > & rSeq ) } template< class E > -inline bool Sequence< E >::operator == ( const Sequence< E > & rSeq ) const +inline bool Sequence< E >::operator == ( const Sequence & rSeq ) const { if (_pSequence == rSeq._pSequence) return true; const Type & rType = ::cppu::getTypeFavourUnsigned( this ); return ::uno_type_equalData( - const_cast< Sequence< E > * >( this ), rType.getTypeLibType(), - const_cast< Sequence< E > * >( &rSeq ), rType.getTypeLibType(), + const_cast< Sequence * >( this ), rType.getTypeLibType(), + const_cast< Sequence * >( &rSeq ), rType.getTypeLibType(), cpp_queryInterface, cpp_release ); } template< class E > -inline bool Sequence< E >::operator != ( const Sequence< E > & rSeq ) const +inline bool Sequence< E >::operator != ( const Sequence & rSeq ) const { return (! operator == ( rSeq )); } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
