Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8862)

Unified Diff: chrome/test/webdriver/keycode_text_conversion_gtk.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/frame_path.cc ('k') | chrome/test/webdriver/webdriver_dispatch_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/keycode_text_conversion_gtk.cc
diff --git a/chrome/test/webdriver/keycode_text_conversion_gtk.cc b/chrome/test/webdriver/keycode_text_conversion_gtk.cc
index 05b17db71d138a9434164853f1517de87310ae7a..302d708a75ff3d6e1948e186ed849155fb62c454 100644
--- a/chrome/test/webdriver/keycode_text_conversion_gtk.cc
+++ b/chrome/test/webdriver/keycode_text_conversion_gtk.cc
@@ -23,7 +23,7 @@ std::string ConvertKeyCodeToText(ui::KeyboardCode key_code, int modifiers) {
gdk_key_code = gdk_keyval_to_upper(gdk_key_code);
guint32 unicode_char = gdk_keyval_to_unicode(gdk_key_code);
if (!unicode_char)
- return "";
+ return std::string();
gchar buffer[6];
gint length = g_unichar_to_utf8(unicode_char, buffer);
return std::string(buffer, length);
« no previous file with comments | « chrome/test/webdriver/frame_path.cc ('k') | chrome/test/webdriver/webdriver_dispatch_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698