From 23162ca1c6d891a9c5fe0e0fab1193cd54ed1b4f Mon Sep 17 00:00:00 2001 From: costan Date: Tue, 10 Oct 2017 11:29:00 -0700 Subject: [PATCH] Fix typo (forgotten reference operator) in test. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171708408 --- db/fault_injection_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/fault_injection_test.cc b/db/fault_injection_test.cc index 875dfe8..f8b2440 100644 --- a/db/fault_injection_test.cc +++ b/db/fault_injection_test.cc @@ -34,7 +34,7 @@ class FaultInjectionTestEnv; namespace { // Assume a filename, and not a directory name like "/foo/bar/" -static std::string GetDirName(const std::string filename) { +static std::string GetDirName(const std::string& filename) { size_t found = filename.find_last_of("/\\"); if (found == std::string::npos) { return "";