diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-16 16:43:06 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-16 20:37:35 +0000 |
commit | 8b34be0852d8c8ae350d192980d825211e37f7ee (patch) | |
tree | f439dc13996d09f89d1643e3e8f06897188b535e | |
parent | 70f3c595cae858e97616bf1f23adea8a75e42d4b (diff) |
Use injected class name
Change-Id: I22bf0f7024538ea7a6c2c328a6647d3aeb478141
Reviewed-on: https://gerrit.libreoffice.org/20000
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | include/com/sun/star/uno/Sequence.h | 8 | ||||
-rw-r--r-- | include/com/sun/star/uno/Sequence.hxx | 12 |
2 files changed, 10 insertions, 10 deletions
diff --git a/include/com/sun/star/uno/Sequence.h b/include/com/sun/star/uno/Sequence.h index 4241851fa934..d22bc1e8e78f 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 8b6903963608..ab2c6bf8c339 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 )); } |