option: rename to to_string_opt and to_string_view_opt

to_option_string -> to_string_opt
to_string_view   -> to_string_view_opt
This commit is contained in:
Dirk-Jan C. Binnema
2022-04-16 13:16:29 +03:00
parent 4f9c154d1a
commit 7c51bc68d4
9 changed files with 104 additions and 77 deletions

View File

@ -41,9 +41,6 @@ MessagePart::mime_object() const noexcept
return *mime_obj;
}
Option<std::string>
MessagePart::cooked_filename() const noexcept
{
@ -123,7 +120,7 @@ MessagePart::to_string() const noexcept
if (mime_object().is_part())
return MimePart{mime_object()}.to_string();
else
return mime_object().object_to_string();
return mime_object().to_string_opt();
}