ObjFW  Check-in [770a3a4fe4]

Overview
Comment:OFException should not override - class, rename it to - inClass.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 770a3a4fe43409b6f278449a989e61acc04ca1c5c114883e31d40d8a62cc045a
User & Date: js on 2009-04-21 17:19:56
Other Links: manifest | tags
Context
2009-04-21
17:28
Add missing breaks in OFNumber. check-in: 06c07468fb user: js tags: trunk
17:19
OFException should not override - class, rename it to - inClass. check-in: 770a3a4fe4 user: js tags: trunk
17:16
The if ((self = [super init])) construct isn't needed anymore. check-in: d87df02e8b user: js tags: trunk
Changes

Modified src/OFExceptions.h from [5a3910cc75] to [0feac0a56e].

59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 *
 * \param class The class of the object which caused the exception
 * \return An initialized OFException
 */
- initWithClass: (Class)class;

/**
 * \return The class of the object which caused the exception
 */
- (Class)class;

/**
 * \return An error message for the exception as a C string
 */
- (const char*)cString;
@end








|

|







59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
 *
 * \param class The class of the object which caused the exception
 * \return An initialized OFException
 */
- initWithClass: (Class)class;

/**
 * \return The class of the object in which the exception happened
 */
- (Class)inClass;

/**
 * \return An error message for the exception as a C string
 */
- (const char*)cString;
@end

Modified src/OFExceptions.m from [d5a6457c6c] to [38d5511316].

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
	if (string != NULL)
		free(string);

	return [super free];
}

- (Class)class
{
	return class;
}

- (const char*)cString
{
	return string;







|







76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
	if (string != NULL)
		free(string);

	return [super free];
}

- (Class)inClass
{
	return class;
}

- (const char*)cString
{
	return string;