This commit is contained in:
Laurent Perron
2023-01-27 17:39:33 +01:00
parent 6ae6405ab1
commit 4f19d707fd

View File

@@ -37,11 +37,10 @@ class TextFormatErrorCollector : public google::protobuf::io::ErrorCollector {
~TextFormatErrorCollector() override = default;
void AddError(int line, int column, const std::string& message) override {
collected_errors_.push_back({false, line, column, std::string(message)});
collected_errors_.push_back({false, line, column, message});
}
void AddWarning(const int line, const int column,
absl::string_view message) override {
collected_errors_.push_back({true, line, column, std::string(message)});
void AddWarning(int line, int column, const std::string& message) override {
collected_errors_.push_back({true, line, column, message});
}
// Returns a string listing each collected error. When an error is associated