Changeset 263 for trunk


Ignore:
Timestamp:
Feb 25, 2009, 2:06:58 PM (10 years ago)
Author:
ksherdy
Message:

Update destructor with virtual keyword. Use delete over explict destructor calls.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine.c

    r198 r263  
    243243  // How do we do this?  Parser_Interface<W>::model_info->~Model_Info();
    244244  Parser_Interface<W>::entity_Info->~Entity_Info();
    245   byteplex->~Byteplex();
    246   bitplex->~Bitplex();
     245  delete byteplex;
     246  delete bitplex;
    247247  simd_delete((SIMD_type *) buf);
    248   lexer->~Lexer_Interface();
     248  delete lexer;
    249249}
    250250
  • trunk/src/engine.h

    r197 r263  
    3333class Parser_Interface {
    3434public:
    35         ~Parser_Interface();
     35        virtual ~Parser_Interface();
    3636        static Parser_Interface * ParserFactory(char * filename);
    3737        static Parser_Interface * ParserFactory(char * filename, Model_Info * m);
     
    127127public:
    128128        ParsingEngine(Entity_Info * e, Model_Info * m, Byteplex * b, bool is_external);
    129         ~ParsingEngine();
     129        virtual ~ParsingEngine();
    130130        void ParseContent();
    131131protected:
Note: See TracChangeset for help on using the changeset viewer.