Remove a few unnecessary .data(), remove unnecessary include.

This commit is contained in:
tastytea 2021-05-27 19:07:21 +02:00
parent 919da2ddb6
commit fbb87cac81
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 3 additions and 7 deletions

View File

@ -19,7 +19,6 @@
#include "fs-compat.hpp"
#include <exception>
#include <iostream>
#include <string_view>
#include <vector>

View File

@ -113,9 +113,7 @@ int main(int argc, char *argv[])
cerr << '\n'
<< translate("ERROR: ")
<< format(translate("Could not open {0:s}: {1:s}")
.str()
.data(),
<< format(translate("Could not open {0:s}: {1:s}").str(),
e.path1(), e.what())
<< '\n';
return_code = EXIT_FAILURE;
@ -147,8 +145,7 @@ int main(int argc, char *argv[])
{
cerr << '\n' << translate("ERROR: ") << e.what() << '\n';
cerr << format(translate("Error while searching {0:s}.")
.str()
.data(),
.str(),
filepath)
<< '\n';
return EXIT_FAILURE;
@ -212,7 +209,7 @@ int main(int argc, char *argv[])
{
cout << termcolor::yellow;
}
cout << format(translate(" In {0:s}: \n").str().data(),
cout << format(translate(" In {0:s}: \n").str(),
fs::relative(match.epub_filepath));
last_epub = match.epub_filepath;
if (!opts.nocolor)