pass c strings to fmt (forgot some)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2022-08-16 17:38:43 +02:00
parent 089eac4cfc
commit d438e2292f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 3 additions and 3 deletions

View File

@ -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 {};
}

View File

@ -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;