Skip to content
Snippets Groups Projects
Commit 54cb2a68 authored by Oliver Sander's avatar Oliver Sander Committed by Markus Blatt
Browse files

simplify return statement

parent 54cc8b27
No related branches found
No related tags found
No related merge requests found
......@@ -727,10 +727,9 @@ namespace Dune {
else l = q+1;
}
if (i==j[l])
return iterator(p,j,l);
else
return iterator(p,j,n);
return (i==j[l])
? iterator(p,j,l)
: end();
}
//! const_iterator class for sequential access
......@@ -776,10 +775,9 @@ namespace Dune {
else l = q+1;
}
if (i==j[l])
return const_iterator(p,j,l);
else
return const_iterator(p,j,n);
return (i==j[l])
? const_iterator(p,j,l)
: end();
}
//===== sizes
......
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