File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ target_sources(CodeFormatServer
4444
4545target_link_libraries (CodeFormatServer PUBLIC CodeService)
4646
47+
4748if (CMAKE_SYSTEM_NAME MATCHES "Windows" )
4849 target_compile_definitions (CodeFormatServer PUBLIC -D_WIN32_WINNT=0x0601)
4950elseif (CMAKE_SYSTEM_NAME MATCHES "Linux" )
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ void LuaEditorConfig::Parse()
8383
8484std::shared_ptr<LuaCodeStyleOptions> LuaEditorConfig::Generate (std::string_view fileUri)
8585{
86- auto options = std::make_shared <LuaCodeStyleOptions>() ;
86+ std::shared_ptr <LuaCodeStyleOptions> options = nullptr ;
8787
8888 std::string patternKey;
8989 std::vector<std::shared_ptr<Section>> luaSections;
@@ -148,6 +148,7 @@ std::shared_ptr<LuaCodeStyleOptions> LuaEditorConfig::Generate(std::string_view
148148 }
149149 else
150150 {
151+ options = std::make_shared<LuaCodeStyleOptions>();
151152 for (auto luaSection : luaSections)
152153 {
153154 ParseFromSection (options, luaSection->ConfigMap );
You can’t perform that action at this time.
0 commit comments