mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
use destroy instead of assigning nil, avoids warnings and make smore sense anyway
This commit is contained in:
parent
a3117e5598
commit
88a0e1e390
4 changed files with 6 additions and 6 deletions
|
@ -461,8 +461,8 @@ static GSAutocompleteWindow *gsWindow = nil;
|
|||
if ( (flag) ||
|
||||
(movement == NSCancelTextMovement) )
|
||||
{
|
||||
ASSIGN(_originalWord, nil);
|
||||
ASSIGN(_words, nil);
|
||||
DESTROY(_originalWord);
|
||||
DESTROY(_words);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -110,8 +110,8 @@ NSUnregisterServicesProvider(NSString *name)
|
|||
object: listenerConnection];
|
||||
DESTROY(listenerConnection);
|
||||
}
|
||||
ASSIGN(servicesProvider, nil);
|
||||
ASSIGN(providerName, nil);
|
||||
DESTROY(servicesProvider);
|
||||
DESTROY(providerName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -363,7 +363,7 @@ static NSMutableDictionary *units = nil;
|
|||
}
|
||||
else
|
||||
{
|
||||
ASSIGN(_markers, nil);
|
||||
DESTROY(_markers);
|
||||
}
|
||||
[self setNeedsDisplay: YES];
|
||||
}
|
||||
|
|
|
@ -577,7 +577,7 @@ selectCellWithString: (NSString*)title
|
|||
else
|
||||
{
|
||||
ASSIGN (_directory, [path stringByAppendingPathComponent: title]);
|
||||
ASSIGN (_fullFileName, nil);
|
||||
DESTROY (_fullFileName);
|
||||
}
|
||||
|
||||
[self _selectTextInColumn:column];
|
||||
|
|
Loading…
Reference in a new issue