From 388c3bb790f36f9144898da6a60765772eac0ee0 Mon Sep 17 00:00:00 2001 From: DuDigest <984498205@qq.com> Date: Tue, 18 Jul 2023 21:12:11 +0800 Subject: [PATCH] [coro_rpc] mark the paramater "path" of the function "file_exists" as const #373 --- include/ylt/coro_rpc/impl/common_service.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ylt/coro_rpc/impl/common_service.hpp b/include/ylt/coro_rpc/impl/common_service.hpp index 8e10d779c..c081232ed 100644 --- a/include/ylt/coro_rpc/impl/common_service.hpp +++ b/include/ylt/coro_rpc/impl/common_service.hpp @@ -45,7 +45,7 @@ struct ssl_configure { * @param path * @return true if file exist, otherwise false */ -inline bool file_exists(auto &path) { +inline bool file_exists(const auto &path) { std::error_code ec; if (!std::filesystem::is_directory(path, ec) && std::filesystem::exists(path, ec)) {