Remove a few unnecessary .data(), remove unnecessary include.
This commit is contained in:
parent
919da2ddb6
commit
fbb87cac81
@ -19,7 +19,6 @@
|
||||
#include "fs-compat.hpp"
|
||||
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <string_view>
|
||||
#include <vector>
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user