From 322d455f9f87deb0551d7360ba10e4ae6e3021ab Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 19 Oct 2011 11:17:29 +0200 Subject: Simplified comphelper::OSequenceIterator and its uses. --- comphelper/inc/comphelper/sequence.hxx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'comphelper/inc/comphelper/sequence.hxx') 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 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); }; -- cgit v1.2.3