Fix BOOL accessors to return a genuine boolean (YES or NO)

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22413 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-02-02 21:16:55 +00:00
parent 98bc434e88
commit 34d79dd427
8 changed files with 163 additions and 156 deletions

View file

@ -207,7 +207,7 @@
- (BOOL) shouldCloseDocument
{
return _wcFlags.shouldCloseDocument;
return (_wcFlags.shouldCloseDocument ? YES : NO);
}
- (void) setShouldCascadeWindows: (BOOL)flag
@ -217,7 +217,7 @@
- (BOOL) shouldCascadeWindows
{
return _wcFlags.shouldCascade;
return (_wcFlags.shouldCascade ? YES : NO);
}
- (void) close
@ -375,7 +375,7 @@
- (BOOL) isWindowLoaded
{
return _wcFlags.nibIsLoaded;
return (_wcFlags.nibIsLoaded ? YES : NO);
}
- (void) windowDidLoad