Commit b93cf0d8 authored by dhollowa@chromium.org's avatar dhollowa@chromium.org

Fix compile error on XCode4 / clang.

Fixes XCode4.2 compilation error: method attribute can only be specified on method declarations [-Werror,2]
This is a result of XCode4.2 adding "-DIBAction=void)__attribute__((ibaction)" magic.

BUG=102429
TEST=compile under XCode4.2
R=thakis@chromium.org


Review URL: http://codereview.chromium.org/8432015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108041 0039d316-1c4b-4281-b951-d872f2087c98
parent fc38935a
...@@ -500,7 +500,7 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) { ...@@ -500,7 +500,7 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) {
} }
// Called when "Translate" button is clicked. // Called when "Translate" button is clicked.
- (IBAction)ok:(id)sender { - (void)ok:(id)sender {
if (![self isOwned]) if (![self isOwned])
return; return;
TranslateInfoBarDelegate* delegate = [self delegate]; TranslateInfoBarDelegate* delegate = [self delegate];
...@@ -512,7 +512,7 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) { ...@@ -512,7 +512,7 @@ InfoBar* TranslateInfoBarDelegate::CreateInfoBar(InfoBarTabHelper* owner) {
} }
// Called when someone clicks on the "Nope" button. // Called when someone clicks on the "Nope" button.
- (IBAction)cancel:(id)sender { - (void)cancel:(id)sender {
if (![self isOwned]) if (![self isOwned])
return; return;
TranslateInfoBarDelegate* delegate = [self delegate]; TranslateInfoBarDelegate* delegate = [self delegate];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment