From d438e2292f942035059c46fd71633fcaf2ea63c8 Mon Sep 17 00:00:00 2001 From: tastytea Date: Tue, 16 Aug 2022 17:38:43 +0200 Subject: [PATCH] pass c strings to fmt (forgot some) --- src/book.cpp | 4 ++-- src/output.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/book.cpp b/src/book.cpp index bd1eba6..a5e2f5f 100644 --- a/src/book.cpp +++ b/src/book.cpp @@ -295,8 +295,8 @@ std::vector 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 {}; } diff --git a/src/output.cpp b/src/output.cpp index 288bfcc..dadb3f6 100644 --- a/src/output.cpp +++ b/src/output.cpp @@ -45,7 +45,7 @@ void print_matches(const std::vector &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;