Attached is a patch that cleans up the code in InsetBibtex and InsetInclude 
as outlined earlier.

Incidentally, why does the return below (insetinclude.C) return 
ost.str().c_str() rather than ost.str()?

Angus

static inline
string unique_id() {
        static unsigned int seed = 1000;

        std::ostringstream ost;
        ost << "file" << ++seed;

        // Needed if we use lyxstring.
        return ost.str().c_str();
}



On Wed, 27 Sep 2000, Angus Leeming wrote:
> Further investigation:
>
> InsetBibtex
> ========
> In InsetBibtex::Latex(Buffer const *, ostream & os,
>                      bool /*fragile*/, bool/*fs*/) const
> use the buffer that is passed but not used.
>
> InsetBibtex::getKeys() is called only from Buffer. Call it as getKeys(this)
>
> No need, therefore to store Buffer * owner in InsetBibtex or to use
> current_view.
>
> InsetInclude
> =========
> A quick glance shows that Buffer * master can be replaced in each of the
> Latex(), DocBook(), Linuxdoc() methods.

patch27Sep2000.bz2

Reply via email to