Skip to content
Snippets Groups Projects
Commit e5b7c5e5 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

revert: no new idiom if it can be used only at a handful of occasions.

rather, I would need Ruby's each_with_index.
parent 4dab03b6
No related branches found
No related tags found
No related merge requests found
......@@ -78,8 +78,8 @@ namespace NOlm {
//! Step up or down.
void sel_increment( int step )
{
for( int& k: FSel.V )
k += step;
for( int i=0; i<FSel.size(); ++i )
FSel.V[i] += step;
}
//! Selected file numbers as string.
......@@ -100,8 +100,8 @@ namespace NOlm {
int nJ_max()
{
int ret = 0;
for( int k: FSel.V )
ret = max( ret, MOM[k]->nJ() );
for( int i=0; i<FSel.size(); ++i )
ret = max( ret, MOM[FSel.V[i]]->nJ() );
return ret;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment