diff options
Diffstat (limited to 'comphelper/inc/comphelper/sequence.hxx')
-rw-r--r-- | comphelper/inc/comphelper/sequence.hxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/comphelper/inc/comphelper/sequence.hxx b/comphelper/inc/comphelper/sequence.hxx index 17f2d7cab6bb..0d57913732e7 100644 --- a/comphelper/inc/comphelper/sequence.hxx +++ b/comphelper/inc/comphelper/sequence.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -44,7 +44,7 @@ namespace comphelper { //......................................................................... - namespace staruno = ::com::sun::star::uno; + namespace staruno = ::com::sun::star::uno; //------------------------------------------------------------------------- /** search the given string within the given sequence, return the positions where it was found. @@ -135,7 +135,7 @@ namespace comphelper { public: virtual sal_Bool hasMoreElements() const = 0; - virtual ::com::sun::star::uno::Any nextElement() = 0; + virtual ::com::sun::star::uno::Any nextElement() = 0; }; /** a helper class for iterating through a sequence */ @@ -143,7 +143,7 @@ namespace comphelper class OSequenceIterator : public IIterator { const TYPE* m_pElements; - sal_Int32 m_nLen; + sal_Int32 m_nLen; const TYPE* m_pCurrent; public: @@ -155,7 +155,7 @@ namespace comphelper OSequenceIterator(const ::com::sun::star::uno::Any& _rSequenceAny); virtual sal_Bool hasMoreElements() const; - virtual ::com::sun::star::uno::Any nextElement(); + virtual ::com::sun::star::uno::Any nextElement(); protected: void construct(const ::com::sun::star::uno::Sequence< TYPE >& _rSeq); @@ -234,7 +234,7 @@ namespace comphelper values will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation. */ - template < typename DstType, typename SrcType > + template < typename DstType, typename SrcType > ::com::sun::star::uno::Sequence< DstType > arrayToSequence( const SrcType* i_pArray, sal_Int32 nNum ) { ::com::sun::star::uno::Sequence< DstType > result( nNum ); @@ -265,7 +265,7 @@ namespace comphelper will be truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation. */ - template < typename DstType, typename SrcType > + template < typename DstType, typename SrcType > DstType* sequenceToArray( DstType* io_pArray, const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence ) { ::std::copy( i_Sequence.getConstArray(), i_Sequence.getConstArray()+i_Sequence.getLength(), io_pArray ); @@ -295,7 +295,7 @@ namespace comphelper truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation. */ - template < typename DstType, typename SrcType > + template < typename DstType, typename SrcType > ::com::sun::star::uno::Sequence< DstType > containerToSequence( const SrcType& i_Container ) { ::com::sun::star::uno::Sequence< DstType > result( i_Container.size() ); @@ -335,7 +335,7 @@ namespace comphelper truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation. */ - template < typename DstType, typename SrcType > + template < typename DstType, typename SrcType > DstType sequenceToContainer( const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence ) { DstType result( i_Sequence.getLength() ); @@ -373,7 +373,7 @@ namespace comphelper truncated. There's currently no measure to prevent or detect precision loss, overflow or truncation. */ - template < typename DstType, typename SrcType > + template < typename DstType, typename SrcType > DstType& sequenceToContainer( DstType& o_Output, const ::com::sun::star::uno::Sequence< SrcType >& i_Sequence ) { o_Output.resize( i_Sequence.getLength() ); @@ -382,7 +382,7 @@ namespace comphelper } //......................................................................... -} // namespace comphelper +} // namespace comphelper //......................................................................... |