@@ -114,7 +114,7 @@ class ARCFileReader : public G3Module {
114114
115115 void ParseArrayMap (uint8_t *buffer, size_t size);
116116 G3FrameObjectPtr GCPToFrameObject (uint8_t *buffer,
117- const struct block_stats &block, bool has_string_flag,
117+ const struct block_stats &block,
118118 int depth = 0 , int base_offset = 0 );
119119 std::deque<std::string> filename_;
120120 std::string cur_file_;
@@ -629,8 +629,7 @@ static double GCP64ToFloat(uint8_t *buffer, off_t offset)
629629}
630630
631631G3FrameObjectPtr ARCFileReader::GCPToFrameObject (uint8_t *buffer,
632- const struct ARCFileReader ::block_stats &block, bool has_string_flag,
633- int depth, int base_offset)
632+ const struct ARCFileReader ::block_stats &block, int depth, int base_offset)
634633{
635634 if (base_offset == 0 )
636635 base_offset = block.offset ;
@@ -650,7 +649,7 @@ G3FrameObjectPtr ARCFileReader::GCPToFrameObject(uint8_t *buffer,
650649
651650 for (int i = 0 ; i < block.dim [depth]; i++) {
652651 root->push_back (GCPToFrameObject (buffer, block,
653- has_string_flag, depth+1 , base_offset));
652+ depth+1 , base_offset));
654653 base_offset += block.width *stride;
655654 }
656655
@@ -675,7 +674,7 @@ G3FrameObjectPtr ARCFileReader::GCPToFrameObject(uint8_t *buffer,
675674 * best we can.
676675 */
677676 bool is_a_string = false ;
678- if (has_string_flag ) {
677+ if (has_string_flag_ ) {
679678 // Are we lucky enough that GCP tells us?
680679 is_a_string = (block.flags & REG_STRING);
681680 } else if (block.flags & REG_FAST) {
@@ -838,7 +837,7 @@ void ARCFileReader::Process(G3FramePtr frame, std::deque<G3FramePtr> &out)
838837 for (auto reg = board->second .begin ();
839838 reg != board->second .end (); reg++) {
840839 (*boarddat)[reg->first ] = GCPToFrameObject (
841- buffer, reg->second , has_string_flag_ );
840+ buffer, reg->second );
842841 }
843842 (*templ)[board->first ] = boarddat;
844843 }
0 commit comments