diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-16 21:02:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-16 21:02:23 +0200 |
| commit | 95919ab6f4959a3076276e506d36bdab2d1dd7ab (patch) | |
| tree | 39c8367894153c5e129679fead0463f791eb901a /src | |
| parent | d03b2894c76430b550f9883dddf9d7f51858a896 (diff) | |
Rename process_filename() -> fixed_width().
Diffstat (limited to 'src')
| -rw-r--r-- | src/html_formatter.cc | 2 | ||||
| -rw-r--r-- | src/html_formatter.h | 2 | ||||
| -rw-r--r-- | src/text_formatter.cc | 2 | ||||
| -rw-r--r-- | src/text_formatter.h | 2 | ||||
| -rw-r--r-- | src/verify_report.cc | 2 | ||||
| -rw-r--r-- | src/verify_report.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/html_formatter.cc b/src/html_formatter.cc index 07773645..5e223430 100644 --- a/src/html_formatter.cc +++ b/src/html_formatter.cc @@ -116,7 +116,7 @@ HTMLFormatter::process_string() std::function<std::string (std::string)> -HTMLFormatter::process_filename() +HTMLFormatter::fixed_width() { return [](std::string s) { return String::compose("<code>%1</code>", s); diff --git a/src/html_formatter.h b/src/html_formatter.h index ab46ee2d..b566db86 100644 --- a/src/html_formatter.h +++ b/src/html_formatter.h @@ -38,7 +38,7 @@ public: void list_item(std::string const& text, boost::optional<std::string> type = {}) override; std::function<std::string (std::string)> process_string() override; - std::function<std::string (std::string)> process_filename() override; + std::function<std::string (std::string)> fixed_width() override; private: void tagged(std::string tag, std::string content); diff --git a/src/text_formatter.cc b/src/text_formatter.cc index 2db8b602..a5c630b3 100644 --- a/src/text_formatter.cc +++ b/src/text_formatter.cc @@ -77,7 +77,7 @@ TextFormatter::process_string() std::function<std::string (std::string)> -TextFormatter::process_filename() +TextFormatter::fixed_width() { return [](std::string s) { return s; diff --git a/src/text_formatter.h b/src/text_formatter.h index 5788c94b..df462576 100644 --- a/src/text_formatter.h +++ b/src/text_formatter.h @@ -35,7 +35,7 @@ public: Wrap unordered_list() override; void list_item(std::string const& text, boost::optional<std::string> type = {}) override; std::function<std::string (std::string)> process_string() override; - std::function<std::string (std::string)> process_filename() override; + std::function<std::string (std::string)> fixed_width() override; private: void print(std::string const& text); diff --git a/src/verify_report.cc b/src/verify_report.cc index e9ed517d..fd95fdb3 100644 --- a/src/verify_report.cc +++ b/src/verify_report.cc @@ -86,7 +86,7 @@ verify_report(dcp::VerificationResult const& result, Formatter& formatter) auto write_notes = [&formatter](dcp::VerificationResult const& result, optional<string> cpl_id) { for (auto note: result.notes) { if (note.cpl_id() == cpl_id) { - auto const note_as_string = dcp::note_to_string(note, formatter.process_string(), formatter.process_filename()); + auto const note_as_string = dcp::note_to_string(note, formatter.process_string(), formatter.fixed_width()); switch (note.type()) { case dcp::VerificationNote::Type::OK: formatter.list_item(note_as_string, string("ok")); diff --git a/src/verify_report.h b/src/verify_report.h index a75450df..612918eb 100644 --- a/src/verify_report.h +++ b/src/verify_report.h @@ -89,7 +89,7 @@ public: virtual void list_item(std::string const& text, boost::optional<std::string> type = {}) = 0; virtual std::function<std::string (std::string)> process_string() = 0; - virtual std::function<std::string (std::string)> process_filename() = 0; + virtual std::function<std::string (std::string)> fixed_width() = 0; dcp::File& file() { return _file; |
