22#include < dataio.h>
33#include < G3Reader.h>
44
5- G3Reader::G3Reader (std::string filename, int n_frames_to_read,
5+ G3Reader::G3Reader (const std::string & filename, int n_frames_to_read,
66 float timeout, bool track_filename, size_t buffersize) :
77 prefix_file_(false ), stream_(nullptr ), n_frames_to_read_(n_frames_to_read),
88 n_frames_read_(0 ), n_frames_cur_(0 ), timeout_(timeout),
@@ -12,7 +12,7 @@ G3Reader::G3Reader(std::string filename, int n_frames_to_read,
1212 StartFile (filename);
1313}
1414
15- G3Reader::G3Reader (std::vector<std::string> filename, int n_frames_to_read,
15+ G3Reader::G3Reader (const std::vector<std::string> & filename, int n_frames_to_read,
1616 float timeout, bool track_filename, size_t buffersize) :
1717 prefix_file_(false ), stream_(nullptr ), n_frames_to_read_(n_frames_to_read),
1818 n_frames_read_(0 ), n_frames_cur_(0 ), timeout_(timeout),
@@ -34,7 +34,7 @@ G3Reader::~G3Reader()
3434 g3_istream_close (stream_);
3535}
3636
37- void G3Reader::StartFile (std::string path)
37+ void G3Reader::StartFile (const std::string & path)
3838{
3939 log_info (" Starting file %s\n " , path.c_str ());
4040 cur_file_ = path;
0 commit comments