From aa54dced50985435b5f133324fdc407a51accf1c Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Fri, 4 Sep 2020 19:31:38 +0200 Subject: [PATCH] - coding style --- client/utils/CsvFormatter.cc | 6 +++--- client/utils/CsvFormatter.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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; -- 2.47.3