Author: leavengood Date: 2011-01-09 18:49:05 +0100 (Sun, 09 Jan 2011) New Revision: 40181 Changeset: http://dev.haiku-os.org/changeset/40181 Modified: haiku/trunk/src/apps/showimage/ImageFileNavigator.cpp Log: Fix some style violations and silliness (returning something in a void method.) Modified: haiku/trunk/src/apps/showimage/ImageFileNavigator.cpp =================================================================== --- haiku/trunk/src/apps/showimage/ImageFileNavigator.cpp 2011-01-09 17:43:41 UTC (rev 40180) +++ haiku/trunk/src/apps/showimage/ImageFileNavigator.cpp 2011-01-09 17:49:05 UTC (rev 40181) @@ -377,9 +377,8 @@ 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 @@ 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); }