r176001 - Moving initialization into the initializer list and correcting capitalization, as suggested by Chandler.

Aaron Ballman aaron at aaronballman.com
Sun Feb 24 11:08:11 PST 2013


Author: aaronballman
Date: Sun Feb 24 13:08:10 2013
New Revision: 176001

URL: http://llvm.org/viewvc/llvm-project?rev=176001&view=rev
Log:
Moving initialization into the initializer list and correcting capitalization, as suggested by Chandler.

Modified:
    cfe/trunk/lib/Basic/Diagnostic.cpp

Modified: cfe/trunk/lib/Basic/Diagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Diagnostic.cpp?rev=176001&r1=176000&r2=176001&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Diagnostic.cpp (original)
+++ cfe/trunk/lib/Basic/Diagnostic.cpp Sun Feb 24 13:08:10 2013
@@ -955,11 +955,10 @@ StoredDiagnostic::StoredDiagnostic(Diagn
 StoredDiagnostic::StoredDiagnostic(DiagnosticsEngine::Level Level, unsigned ID,
                                    StringRef Message, FullSourceLoc Loc,
                                    ArrayRef<CharSourceRange> Ranges,
-                                   ArrayRef<FixItHint> Fixits)
-  : ID(ID), Level(Level), Loc(Loc), Message(Message) 
+                                   ArrayRef<FixItHint> 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() { }





More information about the cfe-commits mailing list