From 0f984922383a924a7857ef441ae936e054b1055c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Mon, 23 Jun 2008 12:58:49 +0000 Subject: [PATCH] #i89973# Fix build breaker for msvc8. Patch by thb. --- comphelper/inc/comphelper/stlunosequence.hxx | 25 ++++++++------------ 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/comphelper/inc/comphelper/stlunosequence.hxx b/comphelper/inc/comphelper/stlunosequence.hxx index 9f8caed72437..2ffe08cb6b75 100644 --- a/comphelper/inc/comphelper/stlunosequence.hxx +++ b/comphelper/inc/comphelper/stlunosequence.hxx @@ -7,7 +7,7 @@ * * $RCSfile: stlunosequence.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * * This file is part of OpenOffice.org. * @@ -82,8 +82,15 @@ namespace comphelper { namespace stlunosequence { typedef const V& reference; StlSequenceConstIterator(); StlSequenceConstIterator(S * uno_sequence, typename StlSequenceIterator::difference_type by); - typename StlSequenceIterator::const_reference operator*() const; - typename StlSequenceIterator::const_reference operator[](const typename StlSequenceIterator::difference_type by) const; + typename StlSequenceIterator::const_reference operator*() const + { + return (*(this->m_UnoSequence))[this->m_Index]; + } + + typename StlSequenceIterator::const_reference operator[](const typename StlSequenceIterator::difference_type by) const + { + return (*(this->m_UnoSequence))[this->m_Index+by]; + } }; template @@ -150,12 +157,6 @@ namespace comphelper { namespace stlunosequence { return (*m_UnoSequence)[m_Index]; } - template - inline typename StlSequenceIterator::const_reference StlSequenceConstIterator::operator*() const - { - return (*(this->m_UnoSequence))[this->m_Index]; - } - template inline StlSequenceIterator& StlSequenceIterator::operator++() { @@ -278,12 +279,6 @@ namespace comphelper { namespace stlunosequence { return (*(this->m_UnoSequence))[this->m_Index+by]; } - template - inline typename StlSequenceIterator::const_reference StlSequenceConstIterator::operator[](const typename StlSequenceIterator::difference_type by) const - { - return (*(this->m_UnoSequence))[this->m_Index+by]; - } - // StlSequence template StlSequence::StlSequence(S& uno_sequence)