* Small cleanup

* Mention the fact that the same code is used in DiskUsage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27375 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-09-08 11:24:59 +00:00
parent 24094896b0
commit e74f2e8388
+5 -3
View File
@@ -19,6 +19,10 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
// NOTE: This code is the same in DiskUsge. Maybe it could be made
// into some kind of common base class?
#include "GrepApp.h"
#include <AppFileInfo.h>
@@ -58,9 +62,7 @@ process_refs(entry_ref dirRef, BMessage *message, void* /*reserved*/)
// get the path of the Tracker add-on
image_info image;
int32 cookie = 0;
status_t status = B_OK;
status = get_next_image_info(0, &cookie, &image);
status_t status = get_next_image_info(0, &cookie, &image);
while (status == B_OK) {
if (((char*)process_refs >= (char*)image.text