- Action(GuiView & lyxView, std::string const & icon, lyx::docstring const & text,
- FuncRequest const & func, lyx::docstring const & tooltip = lyx::docstring());
+ // Takes shared ownership of func.
+ // Use for perf-sensitive code such as populating menus.
+ Action(std::shared_ptr<FuncRequest const> func,
+ QIcon const & icon, QString const & text,
+ QString const & tooltip, QObject * parent);