@@ -635,7 +635,8 @@ void o2::framework::ExpressionJSONHelpers::write(std::ostream& o, std::vector<o2
635635 w.EndObject ();
636636}
637637
638- namespace {
638+ namespace
639+ {
639640struct SchemaReader : public rapidjson ::BaseReaderHandler<rapidjson::UTF8 <>, SchemaReader> {
640641 using Ch = rapidjson::UTF8 <>::Ch;
641642 using SizeType = rapidjson::SizeType;
@@ -679,7 +680,7 @@ struct SchemaReader : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, Sch
679680 {
680681 debug << " Ending array" << std::endl;
681682 if (states.top () == State::IN_LIST ) {
682- // finalize schema
683+ // finalize schema
683684 schema = std::make_shared<arrow::Schema>(fields);
684685 states.pop ();
685686 return true ;
@@ -773,13 +774,13 @@ struct SchemaReader : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, Sch
773774 return false ;
774775 }
775776
776- bool Int (int i) {
777+ bool Int (int i)
778+ {
777779 debug << " Int(" << i << " )" << std::endl;
778780 return Uint (i);
779781 }
780-
781782};
782- }
783+ } // namespace
783784
784785std::shared_ptr<arrow::Schema> o2::framework::ArrowJSONHelpers::read (std::istream& s)
785786{
@@ -789,13 +790,14 @@ std::shared_ptr<arrow::Schema> o2::framework::ArrowJSONHelpers::read(std::istrea
789790
790791 bool ok = reader.Parse (isw, sreader);
791792
792- if (!ok) {
793+ if (!ok) {
793794 throw framework::runtime_error_f (" Cannot parse serialized Expression, error: %s at offset: %d" , rapidjson::GetParseError_En (reader.GetParseErrorCode ()), reader.GetErrorOffset ());
794795 }
795796 return sreader.schema ;
796797}
797798
798- namespace {
799+ namespace
800+ {
799801void writeSchema (rapidjson::Writer<rapidjson::OStreamWrapper>& w, arrow::Schema* schema)
800802{
801803 for (auto & f : schema->fields ()) {
@@ -807,7 +809,7 @@ void writeSchema(rapidjson::Writer<rapidjson::OStreamWrapper>& w, arrow::Schema*
807809 w.EndObject ();
808810 }
809811}
810- }
812+ } // namespace
811813
812814void o2::framework::ArrowJSONHelpers::write (std::ostream& o, std::shared_ptr<arrow::Schema>& schema)
813815{
0 commit comments