mirror of
https://github.com/google/leveldb.git
synced 2025-01-31 06:50:07 +08:00
Fix typo (forgotten reference operator) in test.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171708408
This commit is contained in:
parent
5c39524f36
commit
23162ca1c6
@ -34,7 +34,7 @@ class FaultInjectionTestEnv;
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// Assume a filename, and not a directory name like "/foo/bar/"
|
// 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("/\\");
|
size_t found = filename.find_last_of("/\\");
|
||||||
if (found == std::string::npos) {
|
if (found == std::string::npos) {
|
||||||
return "";
|
return "";
|
||||||
|
Loading…
Reference in New Issue
Block a user