From 1f50b439bb894b5d75451ac4049187eabe55f1e6 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 19 Aug 2010 22:35:04 +0000 Subject: [PATCH] Make gcc2 happy. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38284 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/AddOnMonitorHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/storage/AddOnMonitorHandler.cpp b/src/kits/storage/AddOnMonitorHandler.cpp index 54d89eaa2c..897aaa7bf0 100644 --- a/src/kits/storage/AddOnMonitorHandler.cpp +++ b/src/kits/storage/AddOnMonitorHandler.cpp @@ -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; }