]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- coding style 563/head
authorArvin Schnell <aschnell@suse.de>
Fri, 4 Sep 2020 17:31:38 +0000 (19:31 +0200)
committerArvin Schnell <aschnell@suse.de>
Fri, 4 Sep 2020 17:31:38 +0000 (19:31 +0200)
client/utils/CsvFormatter.cc
client/utils/CsvFormatter.h

index 860eda51b9b8ba83f00b3593af2243f30c7ec589..f59242a04868498bbdb8c8a27c5a2828f15f2bbd 100644 (file)
@@ -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 + "\"";
        }
index 363132d289e6b330ffc1d62f524ebd5f4da717d3..4064754eb78d449c576f341ce2c1954c406e39d5 100644 (file)
@@ -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<string> header;
            const vector<vector<string>> rows;