diff options
| author | Raphael Isemann <teemperor@gmail.com> | 2019-10-10 08:30:10 +0000 |
|---|---|---|
| committer | Raphael Isemann <teemperor@gmail.com> | 2019-10-10 08:30:10 +0000 |
| commit | 7c47b4a113047af971252da41548b2162e5dcbe3 (patch) | |
| tree | 1f6d78518b2c9655a000faf3a45f2c3aac67c959 /lldb/source/Expression | |
| parent | 80371c74ae63d2f260bcc75408be9c6f81e38465 (diff) | |
| download | bcm5719-llvm-7c47b4a113047af971252da41548b2162e5dcbe3.tar.gz bcm5719-llvm-7c47b4a113047af971252da41548b2162e5dcbe3.zip | |
[lldb][NFC] Use unique_ptr in DiagnosticManager to express ownership
llvm-svn: 374289
Diffstat (limited to 'lldb/source/Expression')
| -rw-r--r-- | lldb/source/Expression/DiagnosticManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/DiagnosticManager.cpp b/lldb/source/Expression/DiagnosticManager.cpp index 5333e3e545b..48eba3586d3 100644 --- a/lldb/source/Expression/DiagnosticManager.cpp +++ b/lldb/source/Expression/DiagnosticManager.cpp @@ -47,7 +47,7 @@ static const char *StringForSeverity(DiagnosticSeverity severity) { std::string DiagnosticManager::GetString(char separator) { std::string ret; - for (const Diagnostic *diagnostic : Diagnostics()) { + for (const auto &diagnostic : Diagnostics()) { ret.append(StringForSeverity(diagnostic->GetSeverity())); ret.append(diagnostic->GetMessage()); ret.push_back(separator); |

