Commit f3b82a8e by Joao Paulo Magalhaes

Adopt standard style.

parent 86249c57
...@@ -77,7 +77,7 @@ struct ResultsCheckerEntry { ...@@ -77,7 +77,7 @@ struct ResultsCheckerEntry {
std::string name; std::string name;
std::map< std::string, std::string > values; std::map< std::string, std::string > values;
ResultsCheckerEntry(std::string const& n) : name(n) {} ResultsCheckerEntry(const std::string& n) : name(n) {}
int NumThreads() const; int NumThreads() const;
......
...@@ -183,7 +183,7 @@ class ResultsChecker { ...@@ -183,7 +183,7 @@ class ResultsChecker {
void SetHeader_(const std::string& csv_header); void SetHeader_(const std::string& csv_header);
void SetValues_(const std::string& entry_csv_line); void SetValues_(const std::string& entry_csv_line);
std::vector< std::string > SplitCsv_(std::string const& line); std::vector< std::string > SplitCsv_(const std::string& line);
}; };
...@@ -263,7 +263,7 @@ void ResultsChecker::SetValues_(const std::string& entry_csv_line) { ...@@ -263,7 +263,7 @@ void ResultsChecker::SetValues_(const std::string& entry_csv_line) {
} }
// a quick'n'dirty csv splitter (eliminating quotes) // a quick'n'dirty csv splitter (eliminating quotes)
std::vector< std::string > ResultsChecker::SplitCsv_(std::string const& line) { std::vector< std::string > ResultsChecker::SplitCsv_(const std::string& line) {
std::vector< std::string > out; std::vector< std::string > out;
if(line.empty()) return out; if(line.empty()) return out;
if(!field_names.empty()) out.reserve(field_names.size()); if(!field_names.empty()) out.reserve(field_names.size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment