updated protobuf to 3.18.1
This commit is contained in:
@@ -84,7 +84,7 @@ class AnnotationProtoCollector : public AnnotationCollector {
|
||||
// Override for AnnotationCollector::AddAnnotation.
|
||||
virtual void AddAnnotation(size_t begin_offset, size_t end_offset,
|
||||
const std::string& file_path,
|
||||
const std::vector<int>& path) {
|
||||
const std::vector<int>& path) override {
|
||||
typename AnnotationProto::Annotation* annotation =
|
||||
annotation_proto_->add_annotation();
|
||||
for (int i = 0; i < path.size(); ++i) {
|
||||
@@ -95,7 +95,7 @@ class AnnotationProtoCollector : public AnnotationCollector {
|
||||
annotation->set_end(end_offset);
|
||||
}
|
||||
// Override for AnnotationCollector::AddAnnotation.
|
||||
virtual void AddAnnotationNew(Annotation& a) {
|
||||
virtual void AddAnnotationNew(Annotation& a) override {
|
||||
auto* annotation = annotation_proto_->add_annotation();
|
||||
annotation->ParseFromString(a.second);
|
||||
annotation->set_begin(a.first.first);
|
||||
|
||||
Reference in New Issue
Block a user