mirror of https://gitee.com/bigwinds/arangodb
cosmetics
This commit is contained in:
parent
192516f4d7
commit
5b054a7db7
|
@ -68,7 +68,7 @@ void ConfigFeature::collectOptions(std::shared_ptr<ProgramOptions> options) {
|
|||
|
||||
void ConfigFeature::loadOptions(std::shared_ptr<ProgramOptions> options,
|
||||
const char* binaryPath) {
|
||||
for (auto def : _defines) {
|
||||
for (auto const& def : _defines) {
|
||||
DefineEnvironment(def);
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class IniFileParser {
|
|||
std::regex::ECMAScript);
|
||||
// an include line
|
||||
_matchers.include = std::regex(
|
||||
"^[ \t]*@include[ \t]*([-_A-Za-z0-9/i\\.]*)[ \t]*$", std::regex::ECMAScript);
|
||||
"^[ \t]*@include[ \t]*([-_A-Za-z0-9/\\.]*)[ \t]*$", std::regex::ECMAScript);
|
||||
}
|
||||
|
||||
// parse a config file. returns true if all is well, false otherwise
|
||||
|
|
|
@ -33,7 +33,7 @@ std::unordered_map<std::string, std::string> environment;
|
|||
void arangodb::options::DefineEnvironment(std::string const& keyValues) {
|
||||
std::vector<std::string> kvs = basics::StringUtils::split(keyValues, ',', '\\');
|
||||
|
||||
for (auto keyValue : kvs) {
|
||||
for (auto const& keyValue : kvs) {
|
||||
std::string key;
|
||||
std::string value;
|
||||
|
||||
|
|
Loading…
Reference in New Issue