diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 23:57:02 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-01 23:57:02 +0000 |
commit | d149ce8b84a37bb8654f7014bc8e4f229f106f72 (patch) | |
tree | fd10d795c92db5cc7425db1cf18cd5ee539a95d3 /net/disk_cache/mapped_file.h | |
parent | 7de6dd37b467971c9cdf5bed1ee466bdbbe9d42e (diff) | |
download | chromium_src-d149ce8b84a37bb8654f7014bc8e4f229f106f72.zip chromium_src-d149ce8b84a37bb8654f7014bc8e4f229f106f72.tar.gz chromium_src-d149ce8b84a37bb8654f7014bc8e4f229f106f72.tar.bz2 |
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
Diffstat (limited to 'net/disk_cache/mapped_file.h')
-rw-r--r-- | net/disk_cache/mapped_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
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_; |