From: Arvin Schnell Date: Fri, 4 Sep 2020 17:31:38 +0000 (+0200) Subject: - coding style X-Git-Tag: v0.8.14~21^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F563%2Fhead;p=thirdparty%2Fsnapper.git - coding style --- diff --git a/client/utils/CsvFormatter.cc b/client/utils/CsvFormatter.cc index 860eda51..f59242a0 100644 --- a/client/utils/CsvFormatter.cc +++ b/client/utils/CsvFormatter.cc @@ -35,7 +35,7 @@ namespace snapper namespace cli { - const std::string CsvFormatter::default_separator = ","; + const string CsvFormatter::default_separator = ","; string @@ -92,14 +92,14 @@ namespace snapper string - CsvFormatter::double_quotes(const string& value) + CsvFormatter::double_quotes(const string& value) const { return boost::algorithm::replace_all_copy(value, "\"", "\"\"" ); } string - CsvFormatter::enclose_with_quotes(const string& value) + CsvFormatter::enclose_with_quotes(const string& value) const { return "\"" + value + "\""; } diff --git a/client/utils/CsvFormatter.h b/client/utils/CsvFormatter.h index 363132d2..4064754e 100644 --- a/client/utils/CsvFormatter.h +++ b/client/utils/CsvFormatter.h @@ -58,9 +58,9 @@ namespace snapper bool has_special_chars(const string& value) const; - static string double_quotes(const string& value); + string double_quotes(const string& value) const; - static string enclose_with_quotes(const string& value); + string enclose_with_quotes(const string& value) const; const vector header; const vector> rows;