diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 16:11:38 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 16:11:38 +0000 |
commit | e20597e41de65f42beb5c797cf4cd1e40530e7b9 (patch) | |
tree | dbcbad7dd56b3eda2d0c94dd33d1b10d5b505263 /chrome/browser/cocoa/bubble_view.mm | |
parent | ce189c522dec4b777ef5bd9f7b657b73d860e55d (diff) | |
download | chromium_src-e20597e41de65f42beb5c797cf4cd1e40530e7b9.zip chromium_src-e20597e41de65f42beb5c797cf4cd1e40530e7b9.tar.gz chromium_src-e20597e41de65f42beb5c797cf4cd1e40530e7b9.tar.bz2 |
Avoid spurious errors about NSColor*-CGColor* and NSSize-CGSize conversions
The SDK has gotten stupider in 10.6, and has conspired with the compiler,
which now thinks that when the receiver is held in a scoped_nsobject, NSColor
and NSSize arguments should be converted to their CG cousins.
Review URL: http://codereview.chromium.org/205016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bubble_view.mm')
-rw-r--r-- | chrome/browser/cocoa/bubble_view.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/bubble_view.mm b/chrome/browser/cocoa/bubble_view.mm index 1a536c9..012e930 100644 --- a/chrome/browser/cocoa/bubble_view.mm +++ b/chrome/browser/cocoa/bubble_view.mm @@ -107,8 +107,8 @@ const float kWindowEdge = 0.7f; NSFont* textFont = [self font]; scoped_nsobject<NSShadow> textShadow([[NSShadow alloc] init]); [textShadow setShadowBlurRadius:0.0f]; - [textShadow setShadowColor:[textColor gtm_legibleTextColor]]; - [textShadow setShadowOffset:NSMakeSize(0.0f, -1.0f)]; + [textShadow.get() setShadowColor:[textColor gtm_legibleTextColor]]; + [textShadow.get() setShadowOffset:NSMakeSize(0.0f, -1.0f)]; NSDictionary* textDict = [NSDictionary dictionaryWithObjectsAndKeys: textColor, NSForegroundColorAttributeName, |