Differences From Artifact [1510166b61]:
- File
src/exceptions/OFUnboundNamespaceException.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 2285) [annotate] [blame] [check-ins using]
To Artifact [37f60bba81]:
- File
src/exceptions/OFUnboundNamespaceException.m
— part of check-in
[457e0e82af]
at
2013-06-16 20:03:47
on branch trunk
— Split OFUnboundNamespaceException.
OFUnboundNamespaceException is now only used when the namespace is not
bound. If the prefix is not bound, OFUnboundPrefixException is used now. (user: js, size: 1766) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #include "config.h" #include <stdlib.h> #import "OFUnboundNamespaceException.h" #import "OFString.h" #import "common.h" @implementation OFUnboundNamespaceException + (instancetype)exceptionWithClass: (Class)class namespace: (OFString*)namespace { return [[[self alloc] initWithClass: class | > > | < < < < < < | > < < < < | < < < < < < < < < < | < | | < < < < < < < < < | | | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | #include "config.h" #include <stdlib.h> #import "OFUnboundNamespaceException.h" #import "OFString.h" #import "OFXMLElement.h" #import "common.h" @implementation OFUnboundNamespaceException + (instancetype)exceptionWithClass: (Class)class namespace: (OFString*)namespace element: (OFXMLElement*)element { return [[[self alloc] initWithClass: class namespace: namespace element: element] autorelease]; } - initWithClass: (Class)class { @try { [self doesNotRecognizeSelector: _cmd]; } @catch (id e) { [self release]; @throw e; } abort(); } - initWithClass: (Class)class namespace: (OFString*)namespace element: (OFXMLElement*)element { self = [super initWithClass: class]; @try { _namespace = [namespace copy]; _element = [element retain]; } @catch (id e) { [self release]; @throw e; } return self; } - (void)dealloc { [_namespace release]; [_element release]; [super dealloc]; } - (OFString*)description { return [OFString stringWithFormat: @"The namespace %@ is not bound in class %@", _namespace, _inClass]; } - (OFString*)namespace { OF_GETTER(_namespace, false) } - (OFXMLElement*)element { OF_GETTER(_element, false) } @end |