diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 20:54:58 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 20:56:40 +0100 |
commit | e52792c9e0aec6e095137cf8d2f68d1cbec90e80 (patch) | |
tree | e4a5767a788a3a7421f68684af0ff4e32166b7fd /svtools/source | |
parent | 0787dc99aa546f68f4003afd5e60cdcca56cad1d (diff) |
Fix member variable 'RoadmapImpl::InCompleteHyperLabel' not initialized in CTR
+ replace '<' by '!=' when comparing current it with end iterator
Change-Id: Iea8416a5143aafdea863397c78b58512bb54b427
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/roadmap.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx index 6a236884ce67..7d7e2b440e0e 100644 --- a/svtools/source/control/roadmap.cxx +++ b/svtools/source/control/roadmap.cxx @@ -138,6 +138,7 @@ namespace svt ,m_iCurItemID( -1 ) ,m_bInteractive( sal_True ) ,m_bComplete( sal_True ) + ,InCompleteHyperLabel ( NULL ) { } @@ -238,7 +239,7 @@ namespace svt { HL_Vector aItemsCopy = m_pImpl->getHyperLabels(); m_pImpl->getHyperLabels().clear(); - for ( HL_Vector::iterator i = aItemsCopy.begin(); i< aItemsCopy.end(); ++i ) + for ( HL_Vector::iterator i = aItemsCopy.begin(); i != aItemsCopy.end(); ++i ) { delete *i; } @@ -309,7 +310,7 @@ namespace svt const HL_Vector& rItems = m_pImpl->getHyperLabels(); for ( HL_Vector::const_iterator i = rItems.begin(); - i < rItems.end(); + i != rItems.end(); ++i ) { @@ -348,7 +349,7 @@ namespace svt { RoadmapItem* pItem = NULL; for ( HL_Vector::const_iterator i = rItems.begin() + _nIndex; - i< rItems.end(); + i != rItems.end(); ++i, ++_nIndex ) { @@ -435,7 +436,7 @@ namespace svt const HL_Vector& rItems = m_pImpl->getHyperLabels(); for ( HL_Vector::const_iterator i = rItems.begin() + _nStartIndex; - i < rItems.end(); + i != rItems.end(); ++i ) { @@ -458,7 +459,7 @@ namespace svt ItemId nLocID = 0; const HL_Vector& rItems = m_pImpl->getHyperLabels(); for ( HL_Vector::const_iterator i = rItems.begin() + _nStartIndex; - i < rItems.end(); + i != rItems.end(); ++i ) { @@ -530,7 +531,7 @@ namespace svt { const HL_Vector& rItems = m_pImpl->getHyperLabels(); for ( HL_Vector::const_iterator i = rItems.begin(); - i < rItems.end(); + i != rItems.end(); ++i ) { @@ -630,7 +631,7 @@ namespace svt { const HL_Vector& rItems = m_pImpl->getHyperLabels(); for ( HL_Vector::const_iterator i = rItems.begin(); - i < rItems.end(); + i != rItems.end(); ++i ) { |