diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 04:38:52 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 04:38:52 +0000 |
commit | 4df3ac66b2c5e1c1d04bd944424e7bace6f58bf6 (patch) | |
tree | ba7ab737cad378650154571bd472f25277d089d8 /chrome/browser/net | |
parent | 3562f1b7d9d71ff68d4d0936112daa1ea1fa7268 (diff) | |
download | chromium_src-4df3ac66b2c5e1c1d04bd944424e7bace6f58bf6.zip chromium_src-4df3ac66b2c5e1c1d04bd944424e7bace6f58bf6.tar.gz chromium_src-4df3ac66b2c5e1c1d04bd944424e7bace6f58bf6.tar.bz2 |
Coverity: Pass values by reference.
CID=8402,8494,8641,8716,8717,8740,9100
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6676015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/url_info.cc | 8 | ||||
-rw-r--r-- | chrome/browser/net/url_info.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/net/url_info.cc b/chrome/browser/net/url_info.cc index 8418b12..cc02165 100644 --- a/chrome/browser/net/url_info.cc +++ b/chrome/browser/net/url_info.cc @@ -259,10 +259,10 @@ static std::string HoursMinutesSeconds(int seconds) { } // static -void UrlInfo::GetHtmlTable(const UrlInfoTable host_infos, - const char* description, - const bool brief, - std::string* output) { +void UrlInfo::GetHtmlTable(const UrlInfoTable& host_infos, + const char* description, + bool brief, + std::string* output) { if (0 == host_infos.size()) return; output->append(description); diff --git a/chrome/browser/net/url_info.h b/chrome/browser/net/url_info.h index 378edbf..e6dc70a 100644 --- a/chrome/browser/net/url_info.h +++ b/chrome/browser/net/url_info.h @@ -123,9 +123,9 @@ class UrlInfo { void DLogResultsStats(const char* message) const; - static void GetHtmlTable(const UrlInfoTable host_infos, + static void GetHtmlTable(const UrlInfoTable& host_infos, const char* description, - const bool brief, + bool brief, std::string* output); // For testing, and use in printing tables of info, we sometimes need to |