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

Unified Diff: google_apis/gaia/oauth_request_signer.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-run on ToT, revert third_party changes and fix vexing parses. 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: google_apis/gaia/oauth_request_signer.cc
diff --git a/google_apis/gaia/oauth_request_signer.cc b/google_apis/gaia/oauth_request_signer.cc
index b5d138f391b6270ef14797b6af9b45d516253f4c..b78cffe50527b0ecdca6a4e8101c6cbb60949ad1 100644
--- a/google_apis/gaia/oauth_request_signer.cc
+++ b/google_apis/gaia/oauth_request_signer.cc
@@ -89,7 +89,7 @@ std::string BuildBaseString(const GURL& request_base_url,
std::string BuildBaseStringParameters(
const OAuthRequestSigner::Parameters& parameters) {
- std::string result = "";
+ std::string result = std::string();
OAuthRequestSigner::Parameters::const_iterator cursor;
OAuthRequestSigner::Parameters::const_iterator limit;
bool first = true;
@@ -297,7 +297,7 @@ bool SignParameters(const GURL& request_base_url,
// static
bool OAuthRequestSigner::Decode(const std::string& text,
std::string* decoded_text) {
- std::string accumulator = "";
+ std::string accumulator = std::string();
std::string::const_iterator cursor;
std::string::const_iterator limit;
for (limit = text.end(), cursor = text.begin(); cursor != limit; ++cursor) {
@@ -335,7 +335,7 @@ bool OAuthRequestSigner::Decode(const std::string& text,
// static
std::string OAuthRequestSigner::Encode(const std::string& text) {
- std::string result = "";
+ std::string result = std::string();
std::string::const_iterator cursor;
std::string::const_iterator limit;
for (limit = text.end(), cursor = text.begin(); cursor != limit; ++cursor) {

Powered by Google App Engine
This is Rietveld 408576698