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:
Allan Odgaard
2014-11-29 09:53:40 +07:00
parent 66b849c4c6
commit bf4cbd33fa
15 changed files with 31 additions and 31 deletions

View File

@@ -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);
}