Dirty fix for #79

TODO: use smart pointers
master
Vladimir Stackov 2015-08-04 09:55:01 +03:00
parent c3a318dd1c
commit 864cd57570
2 changed files with 8 additions and 0 deletions

View File

@ -151,6 +151,13 @@ Config::Config():
__CLASS ); __CLASS );
} }
Config::Config( const Config & configIn )
{
*this = configIn;
cleanup_storable = false;
cleanup_keywords = false;
}
Config::Config( ConfigInfo * configInfo ): Config::Config( ConfigInfo * configInfo ):
cleanup_storable( false ) cleanup_storable( false )
{ {

View File

@ -78,6 +78,7 @@ public:
OpCodes parseToken( const char *, const OptionType ); OpCodes parseToken( const char *, const OptionType );
bool parseOrValidate( const string &, const OptionType, bool validate = false ); bool parseOrValidate( const string &, const OptionType, bool validate = false );
Config( const Config & );
Config( const Config &, ConfigInfo * ); Config( const Config &, ConfigInfo * );
Config( ConfigInfo * ); Config( ConfigInfo * );
Config(); Config();