From f9067c6b56b7ea89a43c8c2d5a0ca2c8487ea987 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Sun, 24 Feb 2013 19:08:10 +0000 Subject: [PATCH] Moving initialization into the initializer list and correcting capitalization, as suggested by Chandler. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176001 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Diagnostic.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Basic/Diagnostic.cpp b/lib/Basic/Diagnostic.cpp index 153c31e3d1..842bacb9a5 100644 --- a/lib/Basic/Diagnostic.cpp +++ b/lib/Basic/Diagnostic.cpp @@ -955,11 +955,10 @@ StoredDiagnostic::StoredDiagnostic(DiagnosticsEngine::Level Level, StoredDiagnostic::StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID, StringRef Message, FullSourceLoc Loc, ArrayRef Ranges, - ArrayRef Fixits) - : ID(ID), Level(Level), Loc(Loc), Message(Message) + ArrayRef FixIts) + : ID(ID), Level(Level), Loc(Loc), Message(Message), + Ranges(Ranges.begin(), Ranges.end()), FixIts(FixIts.begin(), FixIts.end()) { - this->Ranges.assign(Ranges.begin(), Ranges.end()); - this->FixIts.assign(Fixits.begin(), Fixits.end()); } StoredDiagnostic::~StoredDiagnostic() { } -- 2.40.0