mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Match return value in case of error (nil instead of NO)
This commit is contained in:
parent
e929b48e0b
commit
95f8546eec
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-06-18 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Source/xlib/XGFontManager.m
|
||||
Match return value in case of error (nil instead of NO)
|
||||
|
||||
2020-06-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/fontconfig/FCFaceInfo.h: Add instancevariable _patternIsResolved.
|
||||
|
|
|
@ -106,7 +106,7 @@ cache_name()
|
|||
if ([mgr fileExistsAtPath: path isDirectory: &flag] == NO || flag == NO)
|
||||
{
|
||||
NSLog(@"Library directory '%@' not available!", path);
|
||||
return NO;
|
||||
return nil;
|
||||
}
|
||||
path = [path stringByAppendingPathComponent: @"Fonts"];
|
||||
if ([mgr fileExistsAtPath: path] == NO)
|
||||
|
@ -116,7 +116,7 @@ cache_name()
|
|||
if ([mgr fileExistsAtPath: path isDirectory: &flag] == NO || flag == NO)
|
||||
{
|
||||
NSLog(@"Fonts directory '%@' not available!", path);
|
||||
return NO;
|
||||
return nil;
|
||||
}
|
||||
path = [path stringByAppendingPathComponent: @"Cache"];
|
||||
if ([mgr fileExistsAtPath: path] == NO)
|
||||
|
@ -126,7 +126,7 @@ cache_name()
|
|||
if ([mgr fileExistsAtPath: path isDirectory: &flag] == NO || flag == NO)
|
||||
{
|
||||
NSLog(@"Fonts directory '%@' not available!", path);
|
||||
return NO;
|
||||
return nil;
|
||||
}
|
||||
cacheName = [path stringByAppendingPathComponent: file_name];
|
||||
RETAIN(cacheName);
|
||||
|
|
Loading…
Reference in a new issue