ObjFW  Check-in [c223ace803]

Overview
Comment:Don't compare blocks to nil.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c223ace80338a8a9c600beecd2974a99e88dc400041d28a69cdb493458f57d02
User & Date: js on 2012-04-03 15:30:36
Other Links: manifest | tags
Context
2012-04-03
17:53
Add a missing include. check-in: d0f8cffed5 user: js tags: trunk
15:30
Don't compare blocks to nil. check-in: c223ace803 user: js tags: trunk
2012-03-29
07:57
Add a few "const" where they make sense. check-in: 89d53f2a9a user: js tags: trunk
Changes

Modified src/OFThreadPool.m from [70e4fc157b] to [7cccc445b9].

115
116
117
118
119
120
121
122
123
124
125
126
127
128
129

	[super dealloc];
}

- (void)perform
{
#ifdef OF_HAVE_BLOCKS
	if (block != nil)
		block(object);
	else
#endif
		[object performSelector: selector
			     withObject: object];
}
@end







|







115
116
117
118
119
120
121
122
123
124
125
126
127
128
129

	[super dealloc];
}

- (void)perform
{
#ifdef OF_HAVE_BLOCKS
	if (block != NULL)
		block(object);
	else
#endif
		[object performSelector: selector
			     withObject: object];
}
@end