summaryrefslogtreecommitdiff
path: root/vcl/osx/a11ywrapper.mm
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx/a11ywrapper.mm')
-rw-r--r--vcl/osx/a11ywrapper.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/a11ywrapper.mm b/vcl/osx/a11ywrapper.mm
index c50f4c1dd5cb..a90f917f3813 100644
--- a/vcl/osx/a11ywrapper.mm
+++ b/vcl/osx/a11ywrapper.mm
@@ -149,7 +149,7 @@ static std::ostream &operator<<(std::ostream &s, NSObject *obj) {
// (getter with parameter) attributeNameHereAttributeForParameter:
// (setter) setAttributeNameHereAttributeForElement:to:
-(SEL)selectorForAttribute:(NSString *)attribute asGetter:(BOOL)asGetter withGetterParameter:(BOOL)withGetterParameter {
- SEL selector = (SEL)nil;
+ SEL selector = static_cast<SEL>(nil);
NSAutoreleasePool * pool = [ [ NSAutoreleasePool alloc ] init ];
@try {
// step 1: create method name from attribute name
@@ -175,7 +175,7 @@ static std::ostream &operator<<(std::ostream &s, NSObject *obj) {
// step 2: create selector
selector = NSSelectorFromString ( methodName );
} @catch ( id exception ) {
- selector = (SEL)nil;
+ selector = static_cast<SEL>(nil);
}
[ pool release ];
return selector;