better fix for gcc 3.4 compilation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9308 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2004-11-25 11:57:43 +00:00
parent 8a69513606
commit 25bd4a229b

View File

@ -118,14 +118,14 @@ GViewCB<Controller, Base>::GViewCB(Dialog & parent, std::string const & t,
template <class Controller, class Base> template <class Controller, class Base>
Controller & GViewCB<Controller, Base>::controller() Controller & GViewCB<Controller, Base>::controller()
{ {
return static_cast<Controller &>(Dialog::View::getController()); return static_cast<Controller &>(this->getController());
} }
template <class Controller, class Base> template <class Controller, class Base>
Controller const & GViewCB<Controller, Base>::controller() const Controller const & GViewCB<Controller, Base>::controller() const
{ {
return static_cast<Controller const &>(Dialog::View::getController()); return static_cast<Controller const &>(this->getController());
} }
} // namespace frontend } // namespace frontend