diff --git a/src/files.cpp b/src/files.cpp index 6f28277..a937dd2 100644 --- a/src/files.cpp +++ b/src/files.cpp @@ -19,7 +19,6 @@ #include "fs-compat.hpp" #include -#include #include #include diff --git a/src/main.cpp b/src/main.cpp index 1a2490d..b59fea8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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)