Chromium Code Reviews| Index: chrome/browser/cocoa/authorization_util.mm |
| diff --git a/chrome/browser/cocoa/authorization_util.mm b/chrome/browser/cocoa/authorization_util.mm |
| index fdd4387bbce436e51abf096a7526a5f596911769..e2559934f5270d147c87260bad8028095f8cec50 100644 |
| --- a/chrome/browser/cocoa/authorization_util.mm |
| +++ b/chrome/browser/cocoa/authorization_util.mm |
| @@ -48,7 +48,8 @@ AuthorizationRef AuthorizationCreateToRunAsRoot(CFStringRef prompt) { |
| // The OS will append " Type an administrator's name and password to allow |
| // <CFBundleDisplayName> to make changes." |
| - NSString* prompt_ns = reinterpret_cast<const NSString*>(prompt); |
| + NSString* prompt_ns = const_cast<NSString*>( |
|
Mark Mentovai
2010/09/22 16:38:36
Double casts are worse, readability-wise, than a C
|
| + reinterpret_cast<const NSString*>(prompt)); |
| const char* prompt_c = [prompt_ns UTF8String]; |
| size_t prompt_length = prompt_c ? strlen(prompt_c) : 0; |