Commit c50cbb1b authored by sebastien's avatar sebastien
Browse files

v4 parser: removed redundant static variables initializations


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1049 ac1d8469-bf42-47a9-8791-bf33cf982152
parent ac07e14f
...@@ -9,7 +9,7 @@ using namespace std; ...@@ -9,7 +9,7 @@ using namespace std;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#include "NumericalConstants.hh" #include "NumericalConstants.hh"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
vector<string> NumericalConstants::mNumericalConstants = *(new vector<string>); vector<string> NumericalConstants::mNumericalConstants;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
NumericalConstants::NumericalConstants() NumericalConstants::NumericalConstants()
{ {
......
...@@ -13,8 +13,8 @@ using namespace std; ...@@ -13,8 +13,8 @@ using namespace std;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// = *(new symbolmap); // = *(new symbolmap);
map<string, Symbol, less<string> > SymbolTable::symboltable; map<string, Symbol, less<string> > SymbolTable::symboltable;
vector< vector<string> > SymbolTable::name_table = *(new vector< vector<string> >); vector< vector<string> > SymbolTable::name_table;
vector< vector<string> > SymbolTable::tex_name_table = *(new vector< vector<string> >); vector< vector<string> > SymbolTable::tex_name_table;
ostringstream SymbolTable::output; ostringstream SymbolTable::output;
void (* SymbolTable::error) (const char* ) = NULL; void (* SymbolTable::error) (const char* ) = NULL;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
......
...@@ -11,10 +11,10 @@ using namespace std; ...@@ -11,10 +11,10 @@ using namespace std;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
#include "VariableTable.hh" #include "VariableTable.hh"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
map<varKey,int> VariableTable::mVariableTable = *(new map<varKey,int>); map<varKey,int> VariableTable::mVariableTable;
vector<varKey> VariableTable::mVariableIndex = *(new vector<varKey>); vector<varKey> VariableTable::mVariableIndex;
vector<int> VariableTable::mSortedVariableID = *(new vector<int>); vector<int> VariableTable::mSortedVariableID;
vector<int> VariableTable::mPrintFormatIndex = *(new vector<int>); vector<int> VariableTable::mPrintFormatIndex;
void (* VariableTable::error) (const char* ) = NULL; void (* VariableTable::error) (const char* ) = NULL;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
VariableTable::VariableTable() VariableTable::VariableTable()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment