Enrico Forestieri wrote:
On Thu, Dec 07, 2006 at 06:51:55PM +0100, Georg Baum wrote:

../../src/lyx_main.C: In member function »void lyx::LyX::loadFiles()«:
../../src/lyx_main.C:508: Warnung: Variable »b« wird nicht verwendet

I don't know what to do here. Either
Buffer * const b = newFile(it->absFilename(), string(), true);
or
Buffer * buf = pimpl_->buffer_list_.newBuffer(it->absFilename(), false);
should be deleted, but which? And why do both these functions exist? They look as if they do the same thing.
Can somebody fix this please?

This problem was introduced here:
http://www.lyx.org/trac/changeset/16174

By reading that changeset, it seems that the first one should be
deleted, but I don't know if it was kept to achieve some side effect...

I will look at this. This was moved code and at the time, I didn't try to decide which one to use actually. I will decide now ;-)

Abdel.

Reply via email to