summaryrefslogtreecommitdiffstats
path: root/base/file_path.cc
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 10:45:25 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 10:45:25 +0000
commitb743ea864e2dccc136a3cedd67b5482b8bd176e4 (patch)
tree5baa372601ce252aa911a890512d213c0413e10c /base/file_path.cc
parent563f52fa046c262fc6775dc08ea420f880949745 (diff)
downloadchromium_src-b743ea864e2dccc136a3cedd67b5482b8bd176e4.zip
chromium_src-b743ea864e2dccc136a3cedd67b5482b8bd176e4.tar.gz
chromium_src-b743ea864e2dccc136a3cedd67b5482b8bd176e4.tar.bz2
Reduce pass by value for FilePath.
BUG=None TEST=None CID=4902 Review URL: http://codereview.chromium.org/6696110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.cc')
-rw-r--r--base/file_path.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/file_path.cc b/base/file_path.cc
index a84d017..bf3eee8 100644
--- a/base/file_path.cc
+++ b/base/file_path.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -63,8 +63,8 @@ StringType::size_type FindDriveLetter(const StringType& path) {
}
#if defined(FILE_PATH_USES_DRIVE_LETTERS)
-bool EqualDriveLetterCaseInsensitive(const StringType a,
- const StringType b) {
+bool EqualDriveLetterCaseInsensitive(const StringType& a,
+ const StringType& b) {
size_t a_letter_pos = FindDriveLetter(a);
size_t b_letter_pos = FindDriveLetter(b);