On Mon, Jun 19, 2006 at 03:11:58PM +0200, Lars Gullik Bjønnes wrote: > | I can't use reference because I want to be able to change work_area_ > | at run-time. This work_area_ is not created nor deleted here so it is > | a _safe_ use of pointer. Feel free to suggest something else that > | retain polymorphisms. > > boost::shared_ptr<lyx::frontend::WorkArea, no_delete> work_area_; > > (you have to create the deleter though, no_delete is just an example)
I doubt this improves readability. Very much. > I think a more descriptive name should be found. And don't have any > real good idea, but TheGui is vague... but... if only once instance, > why not as a singleton? GView::getGuiInstance().<do stuff with it>. Same here. Why that line noise? Andre'