From 3fe824e2082730695eaaf059eeb8a5bca4e18b41 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sun, 21 May 2017 00:43:10 -0700 Subject: [PATCH] Fix clang compile --- src/language_server_api.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/language_server_api.h b/src/language_server_api.h index 3a3a7b40..8fb41822 100644 --- a/src/language_server_api.h +++ b/src/language_server_api.h @@ -1613,7 +1613,8 @@ template void Reflect(TVisitor& visitor, Out_ShowLogMessage& value) { REFLECT_MEMBER_START(); REFLECT_MEMBER(jsonrpc); - REFLECT_MEMBER2("method", value.method()); + std::string method = value.method(); + REFLECT_MEMBER2("method", method); REFLECT_MEMBER(params); REFLECT_MEMBER_END(); } @@ -1667,4 +1668,4 @@ struct Out_LocationList : public lsOutMessage { lsRequestId id; NonElidedVector result; }; -MAKE_REFLECT_STRUCT(Out_LocationList, jsonrpc, id, result); \ No newline at end of file +MAKE_REFLECT_STRUCT(Out_LocationList, jsonrpc, id, result);