cppcheck: prefer prefix variants
This commit is contained in:
parent
097c9e2609
commit
a3bb935b56
1 changed files with 8 additions and 4 deletions
|
@ -253,8 +253,10 @@ OUString AttributeListImpl::getTypeByName( const OUString& sName ) throw (Runti
|
|||
{
|
||||
vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
|
||||
|
||||
for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
|
||||
if( (*ii).sName == sName ) {
|
||||
for (; ii != m_pImpl->vecAttribute.end(); ++ii)
|
||||
{
|
||||
if( (*ii).sName == sName )
|
||||
{
|
||||
return (*ii).sType;
|
||||
}
|
||||
}
|
||||
|
@ -265,8 +267,10 @@ OUString AttributeListImpl::getValueByName(const OUString& sName) throw (Runtim
|
|||
{
|
||||
vector<struct TagAttribute>::iterator ii = m_pImpl->vecAttribute.begin();
|
||||
|
||||
for( ; ii != m_pImpl->vecAttribute.end() ; ii ++ ) {
|
||||
if( (*ii).sName == sName ) {
|
||||
for(; ii != m_pImpl->vecAttribute.end(); ++ii)
|
||||
{
|
||||
if( (*ii).sName == sName )
|
||||
{
|
||||
return (*ii).sValue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue