summaryrefslogtreecommitdiff
path: root/include/comphelper/sequence.hxx
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 19:06:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-03-01 09:51:32 -0600
commit8792ec7b2129650777b7b4bfacaa7c13d923279b (patch)
treef181e37b61533b460397cc68625fd21f46bb6393 /include/comphelper/sequence.hxx
parentdff29fadfe418421f2af9fd4f1dccc8a9b4cd545 (diff)
Remove visual noise from include
Conflicts: include/framework/preventduplicateinteraction.hxx include/sfx2/sfxbasecontroller.hxx include/sfx2/sfxbasemodel.hxx include/toolkit/awt/vclxtabpagemodel.hxx include/vcl/field.hxx include/vcl/settings.hxx Change-Id: Ibccf9f88c68267a3d7e656012b51eaf644c418c2 Reviewed-on: https://gerrit.libreoffice.org/8272 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/comphelper/sequence.hxx')
-rw-r--r--include/comphelper/sequence.hxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/include/comphelper/sequence.hxx b/include/comphelper/sequence.hxx
index 38947231b713..235c4c9b31a4 100644
--- a/include/comphelper/sequence.hxx
+++ b/include/comphelper/sequence.hxx
@@ -27,14 +27,14 @@
#include <vector>
-//.........................................................................
+
namespace comphelper
{
-//.........................................................................
+
namespace staruno = ::com::sun::star::uno;
- //-------------------------------------------------------------------------
+
/** search the given string within the given sequence, return the positions where it was found.
if _bOnlyFirst is sal_True, only the first occurrence will be returned.
*/
@@ -49,7 +49,7 @@ namespace comphelper
*_pDest = *_pSource;
}
}
- //-------------------------------------------------------------------------
+
/// concat two sequences
template <class T>
staruno::Sequence<T> concatSequences(const staruno::Sequence<T>& _rLeft, const staruno::Sequence<T>& _rRight)
@@ -68,7 +68,7 @@ namespace comphelper
return aReturn;
}
- //-------------------------------------------------------------------------
+
/// concat three sequences
template <class T>
staruno::Sequence<T> concatSequences(const staruno::Sequence<T>& _rLeft, const staruno::Sequence<T>& _rMiddle, const staruno::Sequence<T>& _rRight)
@@ -89,7 +89,7 @@ namespace comphelper
return aReturn;
}
- //-------------------------------------------------------------------------
+
/// remove a specified element from a sequences
template<class T>
void removeElementAt(staruno::Sequence<T>& _rSeq, sal_Int32 _nPos)
@@ -106,9 +106,9 @@ namespace comphelper
_rSeq.realloc(nLength-1);
}
- //=====================================================================
+
//= iterating through sequences
- //=====================================================================
+
/** a helper class for iterating through a sequence
*/
template <class TYPE>
@@ -133,7 +133,7 @@ namespace comphelper
void construct(const ::com::sun::star::uno::Sequence< TYPE >& _rSeq);
};
- //---------------------------------------------------------------------
+
template <class TYPE>
OSequenceIterator<TYPE>::OSequenceIterator(const ::com::sun::star::uno::Sequence< TYPE >& _rSeq)
:m_pElements(NULL)
@@ -143,7 +143,7 @@ namespace comphelper
construct(_rSeq);
}
- //---------------------------------------------------------------------
+
template <class TYPE>
OSequenceIterator<TYPE>::OSequenceIterator(const ::com::sun::star::uno::Any& _rSequenceAny)
:m_pElements(NULL)
@@ -157,7 +157,7 @@ namespace comphelper
construct(aContainer);
}
- //---------------------------------------------------------------------
+
template <class TYPE>
void OSequenceIterator<TYPE>::construct(const ::com::sun::star::uno::Sequence< TYPE >& _rSeq)
{
@@ -166,21 +166,21 @@ namespace comphelper
m_pCurrent = m_pElements;
}
- //---------------------------------------------------------------------
+
template <class TYPE>
bool OSequenceIterator<TYPE>::hasMoreElements() const
{
return m_pCurrent - m_pElements < m_nLen;
}
- //---------------------------------------------------------------------
+
template <class TYPE>
::com::sun::star::uno::Any OSequenceIterator<TYPE>::nextElement()
{
return ::com::sun::star::uno::makeAny(*m_pCurrent++);
}
- //-------------------------------------------------------------------------
+
/** Copy from a plain C/C++ array into a Sequence.
@tpl SrcType
@@ -210,7 +210,7 @@ namespace comphelper
return result;
}
- //-------------------------------------------------------------------------
+
/** Copy from a Sequence into a plain C/C++ array
@tpl SrcType
@@ -240,7 +240,7 @@ namespace comphelper
return io_pArray;
}
- //-------------------------------------------------------------------------
+
/** Copy from a container into a Sequence
@tpl SrcType
@@ -279,7 +279,7 @@ namespace comphelper
v.empty() ? 0 : &v[0], static_cast<sal_Int32>(v.size()) );
}
- //-------------------------------------------------------------------------
+
/** Copy from a Sequence into a container
@tpl SrcType
@@ -310,7 +310,7 @@ namespace comphelper
::std::copy( i_Sequence.getConstArray(), i_Sequence.getConstArray()+i_Sequence.getLength(), result.begin() );
return result;
}
- //-------------------------------------------------------------------------
+
/** Copy from a Sequence into an existing container
This potentially saves a needless extra copy operation over
@@ -349,9 +349,9 @@ namespace comphelper
return o_Output;
}
-//.........................................................................
+
} // namespace comphelper
-//.........................................................................
+
#endif // INCLUDED_COMPHELPER_SEQUENCE_HXX