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 "fs-compat.hpp"
#include <exception> #include <exception>
#include <iostream>
#include <string_view> #include <string_view>
#include <vector> #include <vector>

View File

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