From e74f2e838877a910d035389e7e4af818f7a414fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 8 Sep 2008 11:24:59 +0000 Subject: [PATCH] * 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 --- src/apps/text_search/TextSearch.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/apps/text_search/TextSearch.cpp b/src/apps/text_search/TextSearch.cpp index 1a2b004adb..f22c36cdf9 100644 --- a/src/apps/text_search/TextSearch.cpp +++ b/src/apps/text_search/TextSearch.cpp @@ -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 @@ -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