Style fixes

This commit is contained in:
Eelco Dolstra 2020-06-11 15:39:08 +02:00
parent 801112de1a
commit 8bd892117a
4 changed files with 8 additions and 8 deletions

View file

@ -5,7 +5,7 @@ namespace nix {
LogFormat defaultLogFormat = LogFormat::raw; LogFormat defaultLogFormat = LogFormat::raw;
LogFormat parseLogFormat(const string &logFormatStr) { LogFormat parseLogFormat(const std::string & logFormatStr) {
if (logFormatStr == "raw") if (logFormatStr == "raw")
return LogFormat::raw; return LogFormat::raw;
else if (logFormatStr == "raw-with-logs") else if (logFormatStr == "raw-with-logs")
@ -34,7 +34,7 @@ Logger *makeDefaultLogger() {
} }
} }
void setLogFormat(const string &logFormatStr) { void setLogFormat(const std::string & logFormatStr) {
setLogFormat(parseLogFormat(logFormatStr)); setLogFormat(parseLogFormat(logFormatStr));
} }

View file

@ -12,7 +12,7 @@ enum class LogFormat {
barWithLogs, barWithLogs,
}; };
void setLogFormat(const string &logFormatStr); void setLogFormat(const std::string & logFormatStr);
void setLogFormat(const LogFormat & logFormat); void setLogFormat(const LogFormat & logFormat);
void createDefaultLogger(); void createDefaultLogger();