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 "fs-compat.hpp"
|
||||||
|
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <iostream>
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user