Differences From Artifact [632b122d6b]:
- File src/exceptions/OFOutOfMemoryException.m — part of check-in [e40729d406] at 2013-02-12 18:22:15 on branch trunk — Prefix all ivars with an underscore. (user: js, size: 1478) [annotate] [blame] [check-ins using]
To Artifact [598df3b1e8]:
- File
src/exceptions/OFOutOfMemoryException.m
— part of check-in
[d9ddc4d06e]
at
2013-02-13 23:10:35
on branch trunk
— Don't cache the description of exceptions.
This was pretty pointless, as it's usually only used once. (user: js, size: 1377) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
35 36 37 38 39 40 41 |
_requestedSize = requestedSize;
return self;
}
- (OFString*)description
{
| < < < | | < < | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
_requestedSize = requestedSize;
return self;
}
- (OFString*)description
{
if (_requestedSize != 0)
return [OFString stringWithFormat:
@"Could not allocate %zu bytes in class %@!",
_requestedSize, _inClass];
else
return [OFString stringWithFormat:
@"Could not allocate enough memory in class %@!", _inClass];
}
- (size_t)requestedSize
{
return _requestedSize;
}
@end
|