Andre Poenitz wrote:
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.
So, I need to do:

static const Inset::Code lyxCode_ = Inset::BIBITEM_CODE;

and then later:

lyxCode_ = Inset::BIBITEM_CODE;

Yes? Should the latter be put in the .cpp file rather than in the header?
Note also that an _enum_ might help.
Sorry, didn't follow that. Inset::BIBITEM_CODE is a value in an enum. Did you mean something else?

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to