From 2bce035bc176ac4c5c8cb5f5311c2bfd77c4ee07 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Mon, 6 Jul 2009 20:11:00 +0000 Subject: Fix few trivial Coverity issues, mainly PASS_BY_VALUE. Review URL: http://codereview.chromium.org/155022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19974 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/file_path.cc') diff --git a/base/file_path.cc b/base/file_path.cc index f342054..fa93b2a 100644 --- a/base/file_path.cc +++ b/base/file_path.cc @@ -83,7 +83,7 @@ bool IsPathAbsolute(const FilePath::StringType& path) { #endif // FILE_PATH_USES_DRIVE_LETTERS } -bool AreAllSeparators(FilePath::StringType input) { +bool AreAllSeparators(const FilePath::StringType& input) { for (FilePath::StringType::const_iterator it = input.begin(); it != input.end(); ++it) { if (!FilePath::IsSeparator(*it)) -- cgit v1.1