Skip to content

Commit f9448d8

Browse files
committed
fix sumneko_1984
1 parent c3c3496 commit f9448d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormatLib/src/LuaCodeFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ std::vector<LuaDiagnosticInfo> LuaCodeFormat::MakeDiagnosticInfo(const std::vect
251251
std::shared_ptr<LuaFile> file) {
252252
std::vector<LuaDiagnosticInfo> results;
253253
for (auto &diagnostic: diagnostics) {
254-
auto result = results.emplace_back();
254+
auto& result = results.emplace_back();
255255
result.Type = diagnostic.Type;
256256
result.Message = diagnostic.Message;
257257
result.Data = diagnostic.Data;

0 commit comments

Comments
 (0)