Oh, that makes sense then.
One more question - am I in danger of creating a memory leak if I, for instance, have this kind of function?
Qt Code:
  1. Plot2d::function_that_gets_called_a_lot_from_my_main_window()
  2. {
  3. meshGrid->setData(new SpectrogramData());
  4. rightAxis->setColorMap(zInterval, new ColorMap());
  5. // etc.
  6. // Basically where every function, that needs a pointer, gets a new() object.
  7. }
To copy to clipboard, switch view to plain text mode