forked from qt-creator/qt-creator
Clang: Don't instantiate value two times
Change-Id: I5619f157a8a251ad06f6ea63d310015d13eb4c9c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -113,7 +113,7 @@ std::vector<SourceRange> Diagnostic::ranges() const
|
||||
const SourceRange sourceRange(clang_getDiagnosticRange(cxDiagnostic, index));
|
||||
|
||||
if (sourceRange.isValid())
|
||||
ranges.push_back(SourceRange(clang_getDiagnosticRange(cxDiagnostic, index)));
|
||||
ranges.push_back(std::move(sourceRange));
|
||||
}
|
||||
|
||||
return ranges;
|
||||
|
Reference in New Issue
Block a user