From 4b392475ba7969882bcdc6607e5223c3e2fad947 Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 31 Oct 2023 17:07:47 +0800 Subject: [PATCH] fix: build error --- source/MaaRpc/implement/Utility.cpp | 2 +- source/include/Utils/Logger.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/MaaRpc/implement/Utility.cpp b/source/MaaRpc/implement/Utility.cpp index 3f823366a..b6a911d9c 100644 --- a/source/MaaRpc/implement/Utility.cpp +++ b/source/MaaRpc/implement/Utility.cpp @@ -51,7 +51,7 @@ Status UtilityImpl::set_global_option(ServerContext* context, const ::maarpc::Se case ::maarpc::SetGlobalOptionRequest::OptionCase::kLogging: if (request->has_logging()) { auto logging = request->logging(); - if (MaaSetGlobalOption(MaaGlobalOption_Logging, logging.data(), logging.size())) { + if (MaaSetGlobalOption(MaaGlobalOption_LogDir, logging.data(), logging.size())) { return Status::OK; } else { diff --git a/source/include/Utils/Logger.h b/source/include/Utils/Logger.h index 0dfdb51f2..ee8453196 100644 --- a/source/include/Utils/Logger.h +++ b/source/include/Utils/Logger.h @@ -134,9 +134,7 @@ class MAA_UTILS_API Logger template void stream(T&& value) { - auto&& content = string_converter_(std::forward(value)); - - buffer_ << std::forward(content) << sep_.str; + buffer_ << string_converter_(std::forward(value)) << sep_.str; } template