From d149ce8b84a37bb8654f7014bc8e4f229f106f72 Mon Sep 17 00:00:00 2001 From: "rvargas@google.com" Date: Wed, 1 Jul 2009 23:57:02 +0000 Subject: Fix 15 coverity complaints. Most of the changes are cosmetic, but there is also a memory leak in CreateExpiredServer. BUG=none TEST=none Review URL: http://codereview.chromium.org/153001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19788 0039d316-1c4b-4281-b951-d872f2087c98 --- net/disk_cache/mapped_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/disk_cache/mapped_file.h') diff --git a/net/disk_cache/mapped_file.h b/net/disk_cache/mapped_file.h index 215a892..b05e470 100644 --- a/net/disk_cache/mapped_file.h +++ b/net/disk_cache/mapped_file.h @@ -26,7 +26,7 @@ class MappedFile : public File { // Performs object initialization. name is the file to use, and size is the // ammount of data to memory map from th efile. If size is 0, the whole file // will be mapped in memory. - void* Init(const std::wstring name, size_t size); + void* Init(const std::wstring& name, size_t size); void* buffer() const { return buffer_; -- cgit v1.1