cppcheck: prefer prefix variants

This commit is contained in:
Caolán McNamara 2010-12-22 13:43:24 +00:00
parent 097c9e2609
commit a3bb935b56

View file

@ -253,8 +253,10 @@ OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw (Runti
{ {
vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin(); vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) { for (; ii != m_pImpl->vecAttribute.end(); ++ii)
if( (*ii).sName == sName ) { {
if( (*ii).sName == sName )
{
return (*ii).sType; return (*ii).sType;
} }
} }
@ -265,8 +267,10 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw (Runtim
{ {
vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin(); vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) { for(; ii != m_pImpl->vecAttribute.end(); ++ii)
if( (*ii).sName == sName ) { {
if( (*ii).sName == sName )
{
return (*ii).sValue; return (*ii).sValue;
} }
} }