summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-30 17:50:36 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-30 17:50:36 +0000
commit11713fd37bfee13bbc698190d939259ecff636f8 (patch)
treec178e0f17cecfa2d5d144b79378f44e05e6bd779
parent54d872f5661417410bf946f1ae3730d4fe801b9a (diff)
downloadchromium_src-11713fd37bfee13bbc698190d939259ecff636f8.zip
chromium_src-11713fd37bfee13bbc698190d939259ecff636f8.tar.gz
chromium_src-11713fd37bfee13bbc698190d939259ecff636f8.tar.bz2
mac: Fix 2 harmless -Wformat issues found by clang.
BUG=111861 TEST=none Review URL: http://codereview.chromium.org/9232073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119689 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm4
-rw-r--r--chrome/common/child_process_logging_mac.mm4
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
index abb528d..bc6dfc6 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -218,7 +218,7 @@ NSAttributedString* OmniboxPopupViewMac::MatchText(
font.GetNativeFont(), NSFontAttributeName,
ContentTextColor(), NSForegroundColorAttributeName,
nil];
- NSString* rawEnDash = [NSString stringWithFormat:@" %C ", 0x2013];
+ NSString* rawEnDash = @" \u2013 ";
NSAttributedString* enDash =
[[[NSAttributedString alloc] initWithString:rawEnDash
attributes:attributes] autorelease];
diff --git a/chrome/common/child_process_logging_mac.mm b/chrome/common/child_process_logging_mac.mm
index d539e46..2f5222e 100644
--- a/chrome/common/child_process_logging_mac.mm
+++ b/chrome/common/child_process_logging_mac.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -187,7 +187,7 @@ void SetCommandLine(const CommandLine* command_line) {
// Note the total number of switches, not including the exec path.
const CommandLine::StringVector& argv = command_line->argv();
SetCrashKeyValue(kNumSwitchesKey,
- [NSString stringWithFormat:@"%d", argv.size() - 1]);
+ [NSString stringWithFormat:@"%zu", argv.size() - 1]);
size_t key_i = 0;
for (size_t i = 1; i < argv.size() && key_i < kMaxSwitches; ++i) {