@@ -305,7 +305,7 @@ bool FiffRawData::read_raw_segment(MatrixXd& data,
305305 else if (t_pTag->type == FIFFT_INT)
306306 one = cal*(Map< MatrixXi >( t_pTag->toInt (),nchan, thisRawDir.nsamp )).cast <double >();
307307 else if (t_pTag->type == FIFFT_FLOAT)
308- one = cal*(Map< MatrixXf >( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
308+ one = cal*(Map<const MatrixXf>( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
309309 else if (t_pTag->type == FIFFT_SHORT)
310310 one = cal*(Map< MatrixShort >( t_pTag->toShort (),nchan, thisRawDir.nsamp )).cast <double >();
311311 else
@@ -332,7 +332,7 @@ bool FiffRawData::read_raw_segment(MatrixXd& data,
332332 }
333333 else if (t_pTag->type == FIFFT_FLOAT)
334334 {
335- tmp_data = (Map< MatrixXf > ( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
335+ tmp_data = (Map<const MatrixXf>( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
336336
337337 for (r = 0 ; r < sel.size (); ++r)
338338 newData.block (r,0 ,1 ,thisRawDir.nsamp ) = tmp_data.block (sel[r],0 ,1 ,thisRawDir.nsamp );
@@ -359,7 +359,7 @@ bool FiffRawData::read_raw_segment(MatrixXd& data,
359359 else if (t_pTag->type == FIFFT_INT)
360360 one = mult*(Map< MatrixXi >( t_pTag->toInt (),nchan, thisRawDir.nsamp )).cast <double >();
361361 else if (t_pTag->type == FIFFT_FLOAT)
362- one = mult*(Map< MatrixXf >( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
362+ one = mult*(Map<const MatrixXf>( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
363363 else
364364 qWarning (" Data Storage Format not known yet [3]!! Type: %d\n " , t_pTag->type );
365365 }
@@ -639,7 +639,7 @@ bool FiffRawData::read_raw_segment(MatrixXd& data,
639639 else if (t_pTag->type == FIFFT_INT)
640640 one = cal*(Map< MatrixXi >( t_pTag->toInt (),nchan, thisRawDir.nsamp )).cast <double >();
641641 else if (t_pTag->type == FIFFT_FLOAT)
642- one = cal*(Map< MatrixXf >( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
642+ one = cal*(Map<const MatrixXf>( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
643643 else if (t_pTag->type == FIFFT_SHORT)
644644 one = cal*(Map< MatrixShort >( t_pTag->toShort (),nchan, thisRawDir.nsamp )).cast <double >();
645645 else
@@ -667,7 +667,7 @@ bool FiffRawData::read_raw_segment(MatrixXd& data,
667667 }
668668 else if (t_pTag->type == FIFFT_FLOAT)
669669 {
670- MatrixXd tmp_data = (Map< MatrixXf > ( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
670+ MatrixXd tmp_data = (Map<const MatrixXf>( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
671671
672672 for (r = 0 ; r < sel.size (); ++r)
673673 newData.block (r,0 ,1 ,thisRawDir.nsamp ) = tmp_data.block (sel[r],0 ,1 ,thisRawDir.nsamp );
@@ -694,7 +694,7 @@ bool FiffRawData::read_raw_segment(MatrixXd& data,
694694 else if (t_pTag->type == FIFFT_INT)
695695 one = mult*(Map< MatrixXi >( t_pTag->toInt (),nchan, thisRawDir.nsamp )).cast <double >();
696696 else if (t_pTag->type == FIFFT_FLOAT)
697- one = mult*(Map< MatrixXf >( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
697+ one = mult*(Map<const MatrixXf>( t_pTag->toFloat (),nchan, thisRawDir.nsamp )).cast <double >();
698698 else
699699 qWarning (" Data Storage Format not known yet [3]!! Type: %d\n " , t_pTag->type );
700700 }
0 commit comments