Book a Demo

Author Topic: C++ code generation - vitual keyword on destructor  (Read 2793 times)

rhurst

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
C++ code generation - vitual keyword on destructor
« on: August 16, 2007, 07:55:41 am »
When I generate a C++ class the class destructor always has the virtual keyword as a prefix. Is there a way to turn this off?

pborcic

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: C++ code generation - vitual keyword on destru
« Reply #1 on: August 16, 2007, 11:30:03 am »
If you want to turn it off for all classes:

From the menu select Tools->Options
In the Options dialog select Object Lifetimes under Source Code Engineering. Then uncheck the checkbox next to Virtual Destructor.

If you want to turn it off for a specific class only:

Select Generate Code for the class, then Press the Advanced button. In the Object Options dialog select Object Lifetimes under Source Code Engineering. Then uncheck the checkbox next to Virtual Destructor.

rhurst

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: C++ code generation - vitual keyword on destru
« Reply #2 on: August 16, 2007, 11:33:43 am »
Thanks! That is what I was looking for.