From 6c314bd59049aa8050295e4390a05cd1ebaf7d7d Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Sun, 9 Jan 2011 17:49:05 +0000 Subject: [PATCH] Fix some style violations and silliness (returning something in a void method.) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40181 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ImageFileNavigator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/showimage/ImageFileNavigator.cpp b/src/apps/showimage/ImageFileNavigator.cpp index 1370d4b9e4..977a7e495a 100644 --- a/src/apps/showimage/ImageFileNavigator.cpp +++ b/src/apps/showimage/ImageFileNavigator.cpp @@ -377,9 +377,8 @@ bool AutoAdjustingNavigator::FindNextImage(const entry_ref& currentRef, entry_ref& nextRef, bool next, bool rewind) { - if (_CheckForTracker(currentRef)) { + if (_CheckForTracker(currentRef)) return fTrackerNavigator->FindNextImage(currentRef, nextRef, next, rewind); - } if (fFolderNavigator != NULL) return fFolderNavigator->FindNextImage(currentRef, nextRef, next, rewind); @@ -392,11 +391,12 @@ void AutoAdjustingNavigator::UpdateSelection(const entry_ref& ref) { if (_CheckForTracker(ref)) { - return fTrackerNavigator->UpdateSelection(ref); + fTrackerNavigator->UpdateSelection(ref); + return; } if (fFolderNavigator != NULL) - return fFolderNavigator->UpdateSelection(ref); + fFolderNavigator->UpdateSelection(ref); }