diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-14 21:40:06 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-14 21:40:06 +0000 |
commit | e7d05f9c98a95e6b388ec3a7d817627d1f4fb821 (patch) | |
tree | 8dff9da275e394f1bf2ee2fb854c198b3a1bed30 /views/examples | |
parent | ffadbf73e5570421b0513458340a14bdb5a79386 (diff) | |
download | chromium_src-e7d05f9c98a95e6b388ec3a7d817627d1f4fb821.zip chromium_src-e7d05f9c98a95e6b388ec3a7d817627d1f4fb821.tar.gz chromium_src-e7d05f9c98a95e6b388ec3a7d817627d1f4fb821.tar.bz2 |
views/examples: Fix the format string of size_t var in RadioButton example.
Cast from size_t to int.
TEST=compile views_examples target, it should work without errors.
R=sky@chromium.org
Review URL: http://codereview.chromium.org/8252009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105584 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/examples')
-rw-r--r-- | views/examples/radio_button_example.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/examples/radio_button_example.cc b/views/examples/radio_button_example.cc index ae5aa0e..2367197 100644 --- a/views/examples/radio_button_example.cc +++ b/views/examples/radio_button_example.cc @@ -26,7 +26,8 @@ void RadioButtonExample::CreateExampleView(views::View* container) { int group = 1; for (size_t i = 0; i < arraysize(radio_buttons_); ++i) { radio_buttons_[i] = new views::RadioButton( - UTF8ToUTF16(base::StringPrintf("Radio %d in group %d", i + 1, group)), + UTF8ToUTF16(base::StringPrintf( + "Radio %d in group %d", static_cast<int>(i) + 1, group)), group); radio_buttons_[i]->set_listener(this); } |