Fixed an incorrect replace of const value in util/options_helper.cc

Summary: Fixed an incorrect replace of const value in util/options_helper.cc

Test Plan: options_test

Reviewers: igor, sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D48513
main
Yueh-Hsuan Chiang 9 years ago
parent 0bb8ea56be
commit 2379944093
  1. 2
      util/options_helper.cc

@ -459,7 +459,7 @@ bool ParseOptionHelper(char* opt_address, const OptionType& opt_type,
bool SerializeSingleOptionHelper(const char* opt_address, bool SerializeSingleOptionHelper(const char* opt_address,
const OptionType opt_type, const OptionType opt_type,
std::string* value) { std::string* value) {
static const std::string kNullptrString = kNullptrString; static const std::string kNullptrString = "nullptr";
assert(value); assert(value);
switch (opt_type) { switch (opt_type) {
case OptionType::kBoolean: case OptionType::kBoolean:

Loading…
Cancel
Save