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

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: 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: 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..9952a6fa8ce73ade169bdcd41d8713823abe7069 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;
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::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::const_iterator cursor;
std::string::const_iterator limit;
for (limit = text.end(), cursor = text.begin(); cursor != limit; ++cursor) {
« no previous file with comments | « google_apis/gaia/oauth2_mint_token_flow_unittest.cc ('k') | google_apis/gaia/oauth_request_signer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698