diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2013-02-24 19:08:10 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2013-02-24 19:08:10 +0000 |
| commit | 234ebd74aceef2aadcf96454f9b0165254d1632f (patch) | |
| tree | 5d761ab4ee2bd59e5dfcec7067b7fcbc62419efa /clang | |
| parent | 2b125832e33f81bcb58312721e6e754bbfef4aa5 (diff) | |
| download | bcm5719-llvm-234ebd74aceef2aadcf96454f9b0165254d1632f.tar.gz bcm5719-llvm-234ebd74aceef2aadcf96454f9b0165254d1632f.zip | |
Moving initialization into the initializer list and correcting capitalization, as suggested by Chandler.
llvm-svn: 176001
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 153c31e3d17..842bacb9a5d 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/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<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() { } |

