diff --git a/ComputingTasks.cc b/ComputingTasks.cc
index 9843ba7d51c95ea4dbf4ca21c1830d9c3d9fbca4..ae580372d059fd17f843493069b3d92b741593da 100644
--- a/ComputingTasks.cc
+++ b/ComputingTasks.cc
@@ -1044,10 +1044,7 @@ void
 ObservationTrendsStatement::writeOutput(ostream &output, const string &basename, bool minimal_workspace) const
 {
   output << "options_.trend_coeff = {};" << endl;
-
-  trend_elements_t::const_iterator it;
-
-  for (it = trend_elements.begin(); it != trend_elements.end(); it++)
+  for (trend_elements_t::const_iterator it = trend_elements.begin(); it != trend_elements.end(); it++)
     {
       SymbolType type = symbol_table.getType(it->first);
       if (type == eEndogenous)