From efd9a563f4bdc56dc1f56b671e378e15c3b8057d Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Thu, 23 Jul 2015 18:10:44 +0200
Subject: [PATCH] preprocessor: clean up code

---
 preprocessor/SymbolTable.cc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/preprocessor/SymbolTable.cc b/preprocessor/SymbolTable.cc
index 2c1a699c59..edf92762f8 100644
--- a/preprocessor/SymbolTable.cc
+++ b/preprocessor/SymbolTable.cc
@@ -282,11 +282,9 @@ SymbolTable::writeOutput(ostream &output) const throw (NotYetFrozenException)
       int ic = 1;
       output << "options_.varobs = cell(1);" << endl;
       for (vector<int>::const_iterator it = varobs.begin();
-           it != varobs.end(); it++)
-	{
-	  output << "options_.varobs(" << ic << ")  = {'" << getName(*it) << "'};" << endl;
-	  ic++;
-	}
+           it != varobs.end(); it++, ic++)
+        output << "options_.varobs(" << ic << ")  = {'" << getName(*it) << "'};" << endl;
+
       output << "options_.varobs_id = [ ";
       for (vector<int>::const_iterator it = varobs.begin();
            it != varobs.end(); it++)
-- 
GitLab