Make gcc2 happy.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38284 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2010-08-19 22:35:04 +00:00
parent 6555d1e061
commit 1f50b439bb

View File

@ -532,7 +532,7 @@ bool
AddOnMonitorHandler::_FindEntry(const node_ref& entry, const EntryList& list,
EntryList::iterator& it) const
{
for (; it != list.end(); it++) {
for (; EntryList::const_iterator(it) != list.end(); it++) {
if (it->nref == entry)
return true;
}
@ -544,7 +544,7 @@ bool
AddOnMonitorHandler::_FindEntry(const char* name, const EntryList& list,
EntryList::iterator& it) const
{
for (; it != list.end(); it++) {
for (; EntryList::const_iterator(it) != list.end(); it++) {
if (strcmp(it->name, name) == 0)
return true;
}
@ -602,7 +602,7 @@ AddOnMonitorHandler::_FindDirectory(const node_ref& directoryNodeRef,
DirectoryList::iterator& it,
const DirectoryList::const_iterator& end) const
{
for (; it != end; it++) {
for (; DirectoryList::const_iterator(it) != end; it++) {
if (it->nref == directoryNodeRef)
return true;
}