From 8a0c2c45a7d9c729ca378d1791e9a88ff38f31d1 Mon Sep 17 00:00:00 2001 From: "payal.pandey" Date: Mon, 27 Apr 2015 23:36:01 -0700 Subject: Cleanup return values in http_auth This CL turns const by value return values into const by ref BUG=393155 Review URL: https://codereview.chromium.org/1105093002 Cr-Commit-Position: refs/heads/master@{#327239} --- net/http/http_auth_cache.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'net/http/http_auth_cache.h') diff --git a/net/http/http_auth_cache.h b/net/http/http_auth_cache.h index 1867295..f05f818 100644 --- a/net/http/http_auth_cache.h +++ b/net/http/http_auth_cache.h @@ -36,9 +36,7 @@ class NET_EXPORT_PRIVATE HttpAuthCache { } // The case-sensitive realm string of the challenge. - const std::string realm() const { - return realm_; - } + const std::string& realm() const { return realm_; } // The authentication scheme of the challenge. HttpAuth::Scheme scheme() const { @@ -46,9 +44,7 @@ class NET_EXPORT_PRIVATE HttpAuthCache { } // The authentication challenge. - const std::string auth_challenge() const { - return auth_challenge_; - } + const std::string& auth_challenge() const { return auth_challenge_; } // The login credentials. const AuthCredentials& credentials() const { -- cgit v1.1