Commit 611d7db4 authored by Marco Bubke's avatar Marco Bubke
Browse files

Clang: Don't instantiate value two times

Change-Id: I5619f157a8a251ad06f6ea63d310015d13eb4c9c
Reviewed-by: default avatarNikolai Kosjar <>
parent 9db8adec
......@@ -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)));
return ranges;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment