From c99387f5f537c41cdade83f1ff0cec81c711e03f Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Tue, 15 Dec 2009 22:22:01 +0000 Subject: [PATCH] removed c99-isms git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29125 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSOutlineView.m | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e980855a..df9098e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-15 Riccardo Mottola + + * Source/NSOutlineView.m: removed c99-isms + 2009-12-11 Eric Wasylishen * Source/GSThemeTools.m: Correct the destination rect coordinates in diff --git a/Source/NSOutlineView.m b/Source/NSOutlineView.m index eac8c4734..67044f1c0 100644 --- a/Source/NSOutlineView.m +++ b/Source/NSOutlineView.m @@ -1142,10 +1142,13 @@ Also returns the child index relative to this parent. */ for (i = row - 1; i >= 0; i--) { + BOOL foundParent; + BOOL foundSibling; + lvl = [self levelForRow: i]; - BOOL foundParent = (lvl == level - 1); - BOOL foundSibling = (lvl == level); + foundParent = (lvl == level - 1); + foundSibling = (lvl == level); if (foundParent) {