Kaydet (Commit) 8b34be08 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use injected class name

Change-Id: I22bf0f7024538ea7a6c2c328a6647d3aeb478141
Reviewed-on: https://gerrit.libreoffice.org/20000Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 70f3c595
......@@ -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
......
......@@ -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 ));
}
......
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