1
0
Fork 0

cosmetics

This commit is contained in:
jsteemann 2016-11-07 21:17:03 +01:00
parent 192516f4d7
commit 5b054a7db7
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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;