We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c3496 commit f9448d8Copy full SHA for f9448d8
CodeFormatLib/src/LuaCodeFormat.cpp
@@ -251,7 +251,7 @@ std::vector<LuaDiagnosticInfo> LuaCodeFormat::MakeDiagnosticInfo(const std::vect
251
std::shared_ptr<LuaFile> file) {
252
std::vector<LuaDiagnosticInfo> results;
253
for (auto &diagnostic: diagnostics) {
254
- auto result = results.emplace_back();
+ auto& result = results.emplace_back();
255
result.Type = diagnostic.Type;
256
result.Message = diagnostic.Message;
257
result.Data = diagnostic.Data;
0 commit comments