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

Unified Diff: content/browser/download/base_file.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
Index: content/browser/download/base_file.cc
diff --git a/content/browser/download/base_file.cc b/content/browser/download/base_file.cc
index b5ded454288f4bcdb6c86b05b4ffbedc43e3e5aa..0b1db97c93a54c22fb139214ce7a170d5c4e1d65 100644
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -232,11 +232,11 @@ bool BaseFile::GetHash(std::string* hash) {
std::string BaseFile::GetHashState() {
if (!calculate_hash_)
- return "";
+ return std::string();
Pickle hash_state;
if (!secure_hash_->Serialize(&hash_state))
- return "";
+ return std::string();
return std::string(reinterpret_cast<const char*>(hash_state.data()),
hash_state.size());
« no previous file with comments | « content/browser/devtools/renderer_overrides_handler.cc ('k') | content/browser/download/base_file_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698