summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html_formatter.cc2
-rw-r--r--src/html_formatter.h2
-rw-r--r--src/text_formatter.cc2
-rw-r--r--src/text_formatter.h2
-rw-r--r--src/verify_report.cc2
-rw-r--r--src/verify_report.h2
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;