diff --git a/modules/dnn/src/caffe/caffe_io.cpp b/modules/dnn/src/caffe/caffe_io.cpp index 730c752ce..abbce0453 100644 --- a/modules/dnn/src/caffe/caffe_io.cpp +++ b/modules/dnn/src/caffe/caffe_io.cpp @@ -1120,7 +1120,7 @@ bool ReadProtoFromTextFile(const char* filename, Message* proto) { std::ifstream fs(filename, std::ifstream::in); CHECK(fs.is_open()) << "Can't open \"" << filename << "\""; IstreamInputStream input(&fs); - return google::protobuf::TextFormat::Parser(true).Parse(&input, proto); + return google::protobuf::TextFormat::Parser().Parse(&input, proto); } bool ReadProtoFromBinaryFile(const char* filename, Message* proto) {