mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Remove NSString* typecast when using to_s helper
This has a small run-time cost but source looks better and theoretically safer code.
This commit is contained in:
@@ -99,7 +99,7 @@ OAK_DEBUG_VAR(HTMLOutput_JSBridge);
|
||||
if([options isKindOfClass:[NSNumber class]])
|
||||
range = text::pos_t([options intValue]-1, 0);
|
||||
else if([options isKindOfClass:[NSString class]])
|
||||
range = to_s((NSString*)options);
|
||||
range = to_s(options);
|
||||
document::show(document::create(to_s(path)), document::kCollectionAny, range);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user