* Some minor optimization glitches.
[ginac.git] / ginac / expairseq.cpp
index fee2665c322600e58529bf828e5ed0337e0a2e78..08c81d0313baab96eb83496e473f26fcadeb5160 100644 (file)
@@ -1466,7 +1466,7 @@ bool expairseq::is_canonical() const
  *  if no members were changed. */
 epvector * expairseq::expandchildren(unsigned options) const
 {
-       epvector::const_iterator last = seq.end();
+       const epvector::const_iterator last = seq.end();
        epvector::const_iterator cit = seq.begin();
        while (cit!=last) {
                const ex &expanded_ex = cit->rest.expand(options);