mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Remove setBuffer() calls that are no longer needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28720 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d7601a684b
commit
80c7326663
@ -2763,7 +2763,6 @@ void Buffer::updateLabels(bool childonly) const
|
||||
|
||||
// update all caches
|
||||
clearReferenceCache();
|
||||
inset().setBuffer(const_cast<Buffer &>(*this));
|
||||
updateMacros();
|
||||
|
||||
Buffer & cbuf = const_cast<Buffer &>(*this);
|
||||
|
@ -221,12 +221,6 @@ pasteSelectionHelper(Cursor & cur, ParagraphList const & parlist,
|
||||
|
||||
InsetIterator const i_end = inset_iterator_end(in);
|
||||
for (InsetIterator it = inset_iterator_begin(in); it != i_end; ++it) {
|
||||
// Insets store buffer references so need updating.
|
||||
// FIXME This code can probably be deleted. The insets will get copied
|
||||
// when they are pasted, at which point their buffer_ members will get
|
||||
// set back to zero.
|
||||
it->setBuffer(const_cast<Buffer &>(buffer));
|
||||
|
||||
switch (it->lyxCode()) {
|
||||
|
||||
case LABEL_CODE: {
|
||||
|
Loading…
Reference in New Issue
Block a user