@@ -624,7 +624,7 @@ Index impl::find_new_constraints()
624624 // concurrence & parallelism (1) ..................................
625625 if ( State::considerCopunctual () || State::considerParallel () ) {
626626 // Find walks of length 2 between the vertices of the graph.
627- VectorXidx nbs = spfind<int >( WW.col (c) );
627+ const VectorXidx nbs = spfind<int >( WW.col (c) );
628628 for ( Index n=0 ; n<nbs.rows ()-1 ; n++) {
629629 const Index a = nbs (n); // [a] is a walk of length 2 away from [c].
630630
@@ -642,7 +642,7 @@ Index impl::find_new_constraints()
642642 if ( State::considerCopunctual () ) {
643643 // [a] and [c] are adjacent and have at least one common neighbor.
644644 // Find all common neighbors of [a] and [c].
645- VectorXidx nbnb = Adj.findInColumn (a ); // neighbors of [a].
645+ const VectorXidx nbnb = spfind< int >( Adj.col (a) ); // neighbors of [a].
646646 for ( Index m=0 ; m<nbnb.rows ()-1 ; m++) {
647647 const Index b = nbnb (m);
648648
@@ -667,7 +667,7 @@ Index impl::find_new_constraints()
667667
668668 // parallelism (2) ......................................
669669 // case: straight line segment connects two segments
670- VectorXidx idx = Adj.findInColumn (c ); // neighbors of [c]
670+ const VectorXidx idx = spfind< int >( Adj.col (c) ); // neighbors of [c]
671671
672672 // Check all pairs of neighbors.
673673 for ( Index i=0 ; i<idx.rows (); i++) {
@@ -1043,7 +1043,7 @@ void impl::remove_constraint( const Index i )
10431043
10441044 if ( m_constr.at (i)->is <Parallel>() )
10451045 {
1046- VectorXidx idx = Bi.findInColumn ( i );
1046+ const VectorXidx idx = spfind< int >( Bi.col (i) );
10471047 Q_ASSERT_X ( idx.size () == 2 , Q_FUNC_INFO,
10481048 QStringLiteral (" parallel with %1 entities" )
10491049 .arg ( QString::number (idx.size ())).toUtf8 () );
@@ -1284,7 +1284,7 @@ void impl::replaceGraphics() {
12841284 for ( int c=0 ; c<m_constr.length (); c++)
12851285 {
12861286 bool modified = false ;
1287- const VectorXidx idxx = Bi.findInColumn (c );
1287+ const VectorXidx idxx = spfind< int >( Bi.col (c) );
12881288
12891289 if ( m_constr.at (c).use_count ()==1 ) {
12901290 modified = true ; // actually not modified, but added
0 commit comments