Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1200)

Unified Diff: base/mac_util.mm

Issue 3473006: Fix a bunch of clang warnings/errors. (Closed)
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/mac_util.mm
diff --git a/base/mac_util.mm b/base/mac_util.mm
index 0f5064e7b0fea97ad57662fce3557cec200a6d5f..e017fe7b2035778885094310c60857fadd769b05 100644
--- a/base/mac_util.mm
+++ b/base/mac_util.mm
@@ -53,7 +53,7 @@ void SetUIMode() {
bool WasLaunchedAsLoginItem() {
ProcessSerialNumber psn = { 0, kCurrentProcess };
- scoped_nsobject<NSDictionary> process_info(
+ scoped_nsobject<const NSDictionary> process_info(
reinterpret_cast<const NSDictionary*>(
ProcessInformationCopyDictionary(&psn,
kProcessDictionaryIncludeAllInformationMask)));
@@ -62,7 +62,7 @@ bool WasLaunchedAsLoginItem() {
ProcessSerialNumber parent_psn =
{ (temp >> 32) & 0x00000000FFFFFFFFLL, temp & 0x00000000FFFFFFFFLL };
- scoped_nsobject<NSDictionary> parent_info(
+ scoped_nsobject<const NSDictionary> parent_info(
reinterpret_cast<const NSDictionary*>(
ProcessInformationCopyDictionary(&parent_psn,
kProcessDictionaryIncludeAllInformationMask)));
@@ -86,8 +86,9 @@ LSSharedFileListItemRef GetLoginItemForApp() {
return NULL;
}
- scoped_nsobject<NSArray> login_items_array(reinterpret_cast<const NSArray*>(
- LSSharedFileListCopySnapshot(login_items, NULL)));
+ scoped_nsobject<const NSArray> login_items_array(
+ reinterpret_cast<const NSArray*>(
+ LSSharedFileListCopySnapshot(login_items, NULL)));
NSURL* url = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];

Powered by Google App Engine
This is Rietveld 408576698