Fix an implicit conversion in clang-tidy. GCC 5 complains about it.

This commit is contained in:
Benjamin Kramer 2020-01-29 12:05:01 +01:00
parent ac21535460
commit 0ee4b027d3
1 changed files with 2 additions and 1 deletions

View File

@ -174,7 +174,8 @@ public:
return DiagLevelAndFormatString(
static_cast<DiagnosticIDs::Level>(
DiagEngine->getDiagnosticLevel(DiagnosticID, Loc)),
DiagEngine->getDiagnosticIDs()->getDescription(DiagnosticID));
std::string(
DiagEngine->getDiagnosticIDs()->getDescription(DiagnosticID)));
}
private: