Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2512)

Unified Diff: base/file_path.cc

Issue 155022: Fix few trivial Coverity issues, mainly PASS_BY_VALUE. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/directory_watcher_unittest.cc ('k') | base/simple_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_path.cc
diff --git a/base/file_path.cc b/base/file_path.cc
index f3420543108e25bd731108c563e31c16eac4a447..fa93b2a679b6f133d61b3556ecb8bf0eefc70f6a 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))
« no previous file with comments | « base/directory_watcher_unittest.cc ('k') | base/simple_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698