Exploiting a user-defined |operator->()| when the result is a pointer to a primitive type is problematic for the OS/2 VisualAge compiler. Eliminate such uses in the new string facilities. These are stragglers missed in an earlier checkin.

This commit is contained in:
scc%mozilla.org 2000-06-03 00:38:06 +00:00
Родитель 06dbb8d512
Коммит 752a6ca4ce
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -486,14 +486,14 @@ struct nsCharSourceTraits
PRUint32
readable_distance( const InputIterator& first, const InputIterator& last )
{
return PRUint32(SameFragment(first, last) ? last.operator->()-first.operator->() : first.size_forward());
return PRUint32(SameFragment(first, last) ? last.get()-first.get() : first.size_forward());
}
static
const typename InputIterator::value_type*
read( const InputIterator& iter )
{
return iter.operator->();
return iter.get();
}
};

Просмотреть файл

@ -486,14 +486,14 @@ struct nsCharSourceTraits
PRUint32
readable_distance( const InputIterator& first, const InputIterator& last )
{
return PRUint32(SameFragment(first, last) ? last.operator->()-first.operator->() : first.size_forward());
return PRUint32(SameFragment(first, last) ? last.get()-first.get() : first.size_forward());
}
static
const typename InputIterator::value_type*
read( const InputIterator& iter )
{
return iter.operator->();
return iter.get();
}
};

Просмотреть файл

@ -486,14 +486,14 @@ struct nsCharSourceTraits
PRUint32
readable_distance( const InputIterator& first, const InputIterator& last )
{
return PRUint32(SameFragment(first, last) ? last.operator->()-first.operator->() : first.size_forward());
return PRUint32(SameFragment(first, last) ? last.get()-first.get() : first.size_forward());
}
static
const typename InputIterator::value_type*
read( const InputIterator& iter )
{
return iter.operator->();
return iter.get();
}
};