pass c strings to fmt (forgot some)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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. "
|
<< format(translate("{0:s} is damaged. Could not read spine. "
|
||||||
"Skipping file.\n")
|
"Skipping file.\n")
|
||||||
.str()
|
.str()
|
||||||
.data(),
|
.c_str(),
|
||||||
filepath);
|
filepath.c_str());
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ void print_matches(const std::vector<search::match> &matches,
|
||||||
cout << termcolor::yellow;
|
cout << termcolor::yellow;
|
||||||
}
|
}
|
||||||
cout << format(translate(" In {0:s}: \n").str().c_str(),
|
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)
|
if (!opts.nocolor)
|
||||||
{
|
{
|
||||||
cout << termcolor::reset;
|
cout << termcolor::reset;
|
||||||
|
|
Loading…
Reference in New Issue