From 606e627e76e4057dc22d257f98140ceed4ccf48c Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Mon, 16 Aug 2010 02:45:08 +0000 Subject: [PATCH] Remove unnecessary NULL check (the view in question is created in all cases in InitCommon(), and is already dereferenced several times prior to the check in the function anyways). Fixes CID 1078. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38129 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/PoseView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/PoseView.cpp b/src/kits/tracker/PoseView.cpp index ea545fea62..69a7e22a30 100644 --- a/src/kits/tracker/PoseView.cpp +++ b/src/kits/tracker/PoseView.cpp @@ -7747,7 +7747,7 @@ BPoseView::SwitchDir(const entry_ref *newDirRef, AttributeStreamNode *node) MoveBy(0, -(kTitleViewHeight + 1)); ResizeBy(0, kTitleViewHeight + 1); - } else if (ViewMode() == kListMode && oldMode == kListMode && fTitleView != NULL) + } else if (ViewMode() == kListMode && oldMode == kListMode) fTitleView->Invalidate(); BPoint origin;