summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcostan <costan@google.com>2017-10-10 11:29:00 -0700
committerVictor Costan <pwnall@chromium.org>2017-10-10 11:47:13 -0700
commit23162ca1c6d891a9c5fe0e0fab1193cd54ed1b4f (patch)
tree3542e845ae7ef488ea95bae88c1f84567ff05673
parent5c39524f3639e6bf6ab49215152d24273e662986 (diff)
downloadleveldb-23162ca1c6d891a9c5fe0e0fab1193cd54ed1b4f.tar.gz
Fix typo (forgotten reference operator) in test.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171708408
-rw-r--r--db/fault_injection_test.cc2
1 files changed, 1 insertions, 1 deletions
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 "";