On Wed, Sep 26, 2007 at 06:31:33PM -0000, [EMAIL PROTECTED] wrote:
> ==============================================================================
> --- lyx-devel/branches/personal/rgheck/icp/src/insets/InsetBibitem.h 
> (original)
> +++ lyx-devel/branches/personal/rgheck/icp/src/insets/InsetBibitem.h Wed Sep 
> 26 20:31:30 2007
> @@ -35,8 +35,6 @@
>       ///
>       EDITABLE editable() const { return IS_EDITABLE; }
>       ///
> -     Inset::Code lyxCode() const { return Inset::BIBITEM_CODE; }
> -     ///
>       docstring const getBibLabel() const;
>       ///
>       int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
> @@ -50,6 +48,7 @@
>       ///
>       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
>  private:
> +     static const Inset::Code lyxCode_ = Inset::BIBITEM_CODE;

Note that this formally requires a definition. The constant initializer
is _not_ a definition even if some compilers let you get away with it.

Note also that an _enum_ might help.

Andre'

Reply via email to