From 171f5ff623c189a74a6498ee734b2e991a5fa574 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 24 Dec 2018 13:34:23 -0800 Subject: [PATCH] ircd::fs: Use string_view for error fmt string args. --- include/ircd/fs/error.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/ircd/fs/error.h b/include/ircd/fs/error.h index b29cde8f1..84cc011c2 100644 --- a/include/ircd/fs/error.h +++ b/include/ircd/fs/error.h @@ -31,22 +31,22 @@ struct ircd::fs::error const char *what() const noexcept override; template - error(const char *const &fmt = " ", + error(const string_view &fmt = " ", args&&...); template error(const std::error_code &, - const char *const &fmt, + const string_view &fmt, args&&...); template error(const std::system_error &, - const char *const &fmt, + const string_view &fmt, args&&...); template error(const boost::filesystem::filesystem_error &, - const char *const &fmt, + const string_view &fmt, args&&...); error(const std::error_code &e); @@ -56,7 +56,7 @@ struct ircd::fs::error template ircd::fs::error::error(const boost::filesystem::filesystem_error &e, - const char *const &fmt, + const string_view &fmt, args&&... a) :error { @@ -66,7 +66,7 @@ ircd::fs::error::error(const boost::filesystem::filesystem_error &e, template ircd::fs::error::error(const std::system_error &e, - const char *const &fmt, + const string_view &fmt, args&&... a) :error { @@ -76,7 +76,7 @@ ircd::fs::error::error(const std::system_error &e, template ircd::fs::error::error(const std::error_code &e, - const char *const &fmt, + const string_view &fmt, args&&... a) :std::system_error { @@ -89,7 +89,7 @@ ircd::fs::error::error(const std::error_code &e, {} template -ircd::fs::error::error(const char *const &fmt, +ircd::fs::error::error(const string_view &fmt, args&&... a) :std::system_error {