fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user