Match return value in case of error (nil instead of NO)

This commit is contained in:
Riccardo Mottola 2020-06-18 00:54:32 +02:00
parent e929b48e0b
commit 95f8546eec
2 changed files with 8 additions and 3 deletions

View file

@ -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.

View file

@ -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);