summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-10-19 11:17:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-10-19 11:17:47 +0200
commit322d455f9f87deb0551d7360ba10e4ae6e3021ab (patch)
tree5c68c94ef4279cdb8066428fd193e3e0d00b66d7 /comphelper
parent5e80f012e75dfbcd3343fc45e35e0b32ca754b39 (diff)
Simplified comphelper::OSequenceIterator and its uses.
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/inc/comphelper/sequence.hxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/comphelper/inc/comphelper/sequence.hxx b/comphelper/inc/comphelper/sequence.hxx
index 125668172fb1..46bffc5987d7 100644
--- a/comphelper/inc/comphelper/sequence.hxx
+++ b/comphelper/inc/comphelper/sequence.hxx
@@ -131,16 +131,10 @@ namespace comphelper
//=====================================================================
//= iterating through sequences
//=====================================================================
- class SAL_NO_VTABLE IIterator
- {
- public:
- virtual sal_Bool hasMoreElements() const = 0;
- virtual ::com::sun::star::uno::Any nextElement() = 0;
- };
/** a helper class for iterating through a sequence
*/
template <class TYPE>
- class OSequenceIterator : public IIterator
+ class OSequenceIterator
{
const TYPE* m_pElements;
sal_Int32 m_nLen;
@@ -154,10 +148,10 @@ namespace comphelper
*/
OSequenceIterator(const ::com::sun::star::uno::Any& _rSequenceAny);
- virtual sal_Bool hasMoreElements() const;
- virtual ::com::sun::star::uno::Any nextElement();
+ sal_Bool hasMoreElements() const;
+ ::com::sun::star::uno::Any nextElement();
- protected:
+ private:
void construct(const ::com::sun::star::uno::Sequence< TYPE >& _rSeq);
};