From ee5e3797e086af04cc8fc23ec32f8b7cc457da01 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Tue, 13 Oct 2009 23:23:47 +0000 Subject: Fix a whole bunch of style nits. (Long term intention is to add a subset of cpplint.py to the presubmit script.) Review URL: http://codereview.chromium.org/276008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28914 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/infobar_gtk.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/gtk/infobar_gtk.cc') diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc index 1f95e93..ac0a2d5 100644 --- a/chrome/browser/gtk/infobar_gtk.cc +++ b/chrome/browser/gtk/infobar_gtk.cc @@ -159,7 +159,7 @@ void InfoBar::OnCloseButton(GtkWidget* button, InfoBar* info_bar) { class AlertInfoBar : public InfoBar { public: - AlertInfoBar(AlertInfoBarDelegate* delegate) + explicit AlertInfoBar(AlertInfoBarDelegate* delegate) : InfoBar(delegate) { std::wstring text = delegate->GetMessageText(); GtkWidget* label = gtk_label_new(WideToUTF8(text).c_str()); @@ -174,7 +174,7 @@ class AlertInfoBar : public InfoBar { class LinkInfoBar : public InfoBar { public: - LinkInfoBar(LinkInfoBarDelegate* delegate) + explicit LinkInfoBar(LinkInfoBarDelegate* delegate) : InfoBar(delegate) { size_t link_offset; std::wstring display_text = @@ -239,7 +239,7 @@ class LinkInfoBar : public InfoBar { class ConfirmInfoBar : public AlertInfoBar { public: - ConfirmInfoBar(ConfirmInfoBarDelegate* delegate) + explicit ConfirmInfoBar(ConfirmInfoBarDelegate* delegate) : AlertInfoBar(delegate) { AddConfirmButton(ConfirmInfoBarDelegate::BUTTON_CANCEL); AddConfirmButton(ConfirmInfoBarDelegate::BUTTON_OK); -- cgit v1.1