pass c strings to fmt (forgot some)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
089eac4cfc
commit
d438e2292f
@ -295,8 +295,8 @@ std::vector<string> list_spine(const fs::path &filepath)
|
||||
<< format(translate("{0:s} is damaged. Could not read spine. "
|
||||
"Skipping file.\n")
|
||||
.str()
|
||||
.data(),
|
||||
filepath);
|
||||
.c_str(),
|
||||
filepath.c_str());
|
||||
return {};
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ void print_matches(const std::vector<search::match> &matches,
|
||||
cout << termcolor::yellow;
|
||||
}
|
||||
cout << format(translate(" In {0:s}: \n").str().c_str(),
|
||||
fs::relative(matches[0].filepath_epub));
|
||||
fs::relative(matches[0].filepath_epub).c_str());
|
||||
if (!opts.nocolor)
|
||||
{
|
||||
cout << termcolor::reset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user