summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-07-06 08:43:11 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-07-06 08:43:11 +0000
commit618233d72ce016cfde698e13cdeafd37e8b3d577 (patch)
treedeffd16516b80178887133047f3c73a89fae2ef8 /xmloff
parent1eaca49d1bcd6a1838cfb25a557d5e4270358b94 (diff)
INTEGRATION: CWS oj14 (1.12.22); FILE MERGED
2006/11/07 19:15:44 oj 1.12.22.1: correct vector usage and new token
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/attrlist.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/xmloff/source/core/attrlist.cxx b/xmloff/source/core/attrlist.cxx
index 47845c6588b7..e5680fd006ec 100644
--- a/xmloff/source/core/attrlist.cxx
+++ b/xmloff/source/core/attrlist.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: attrlist.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: hr $ $Date: 2007-06-27 14:56:01 $
+ * last change: $Author: rt $ $Date: 2007-07-06 09:43:11 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -253,14 +253,9 @@ void SvXMLAttributeList::SetValueByIndex( sal_Int16 i,
void SvXMLAttributeList::RemoveAttributeByIndex( sal_Int16 i )
{
- ::std::vector<struct SvXMLTagAttribute_Impl>::iterator ii =
- m_pImpl->vecAttribute.begin();
-
- for( ; i && ii != m_pImpl->vecAttribute.end() ; --i )
- ++ii;
-
- if( ii != m_pImpl->vecAttribute.end() )
- m_pImpl->vecAttribute.erase( ii );
+ if( static_cast< SvXMLAttributeList_Impl::size_type >( i )
+ < m_pImpl->vecAttribute.size() )
+ m_pImpl->vecAttribute.erase( m_pImpl->vecAttribute.begin() + i );
}
void SvXMLAttributeList::RenameAttributeByIndex( sal_Int16 i,