int size,
Ecore_Cocoa_Cnp_Type type)
{
- static NSMutableArray *objects = nil;
+ NSMutableArray *objects;
NSString *str = nil;
BOOL ok = YES;
- if (!objects)
- objects = [[NSMutableArray alloc] init];
-
+ objects = [[NSMutableArray alloc] init];
if (type & ECORE_COCOA_CNP_TYPE_STRING)
{
str = [[NSString alloc] initWithBytes: data
Ecore_Cocoa_Cnp_Type type,
Ecore_Cocoa_Cnp_Type *retrieved_types)
{
- static NSMutableArray *classes = nil;
+ NSMutableArray *classes;
void *data;
NSDictionary *options;
NSPasteboard *pb;
BOOL string_class = NO;
Ecore_Cocoa_Cnp_Type types = 0;
- if (!classes)
- classes = [[NSMutableArray alloc] init];
+ classes = [[NSMutableArray alloc] init];
if ((type & ECORE_COCOA_CNP_TYPE_STRING) ||
(type & ECORE_COCOA_CNP_TYPE_MARKUP))