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

Unified Diff: content/gpu/gpu_info_collector.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 | « content/browser/worker_host/test/worker_browsertest.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_info_collector.cc
diff --git a/content/gpu/gpu_info_collector.cc b/content/gpu/gpu_info_collector.cc
index 86fb0c57c08c36172c43f2eac428f3afb46e6224..d3f5867b770e28d8421bb8a5ada0db9bf3d19e56 100644
--- a/content/gpu/gpu_info_collector.cc
+++ b/content/gpu/gpu_info_collector.cc
@@ -53,7 +53,7 @@ std::string GetGLString(unsigned int pname) {
reinterpret_cast<const char*>(glGetString(pname));
if (gl_string)
return std::string(gl_string);
- return "";
+ return std::string();
}
// Return a version string in the format of "major.minor".
@@ -71,7 +71,7 @@ std::string GetVersionFromString(const std::string& version_string) {
if (pieces.size() >= 2)
return pieces[0] + "." + pieces[1];
}
- return "";
+ return std::string();
}
} // namespace anonymous
« no previous file with comments | « content/browser/worker_host/test/worker_browsertest.cc ('k') | content/public/test/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698