Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 31, 2023
1 parent 035fbc9 commit 4b39247
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/MaaRpc/implement/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 1 addition & 3 deletions source/include/Utils/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ class MAA_UTILS_API Logger
template <typename T>
void stream(T&& value)
{
auto&& content = string_converter_(std::forward<T>(value));

buffer_ << std::forward<decltype(content)>(content) << sep_.str;
buffer_ << string_converter_(std::forward<T>(value)) << sep_.str;
}

template <typename... args_t>
Expand Down

0 comments on commit 4b39247

Please sign in to comment.