mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
buffer_ --> buffer()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35114 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
856b01b6da
commit
b28eca7476
@ -54,7 +54,7 @@ docstring const key_prefix = from_ascii("key-");
|
|||||||
InsetBibitem::InsetBibitem(Buffer * buf, InsetCommandParams const & p)
|
InsetBibitem::InsetBibitem(Buffer * buf, InsetCommandParams const & p)
|
||||||
: InsetCommand(buf, p, "bibitem")
|
: InsetCommand(buf, p, "bibitem")
|
||||||
{
|
{
|
||||||
buffer_->invalidateBibinfoCache();
|
buffer().invalidateBibinfoCache();
|
||||||
if (getParam("key").empty())
|
if (getParam("key").empty())
|
||||||
setParam("key", key_prefix + convert<docstring>(++key_counter));
|
setParam("key", key_prefix + convert<docstring>(++key_counter));
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ InsetBibitem::InsetBibitem(Buffer * buf, InsetCommandParams const & p)
|
|||||||
InsetBibitem::~InsetBibitem()
|
InsetBibitem::~InsetBibitem()
|
||||||
{
|
{
|
||||||
if (isBufferLoaded())
|
if (isBufferLoaded())
|
||||||
buffer_->invalidateBibinfoCache();
|
buffer().invalidateBibinfoCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -93,6 +93,7 @@ void InsetBibitem::updateCommand(docstring const & new_key, bool)
|
|||||||
"it will be changed to %2$s."), new_key, key));
|
"it will be changed to %2$s."), new_key, key));
|
||||||
}
|
}
|
||||||
setParam("key", key);
|
setParam("key", key);
|
||||||
|
buffer().invalidateBibinfoCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -127,7 +128,7 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.bv().buffer().changeRefsIfUnique(old_key,
|
cur.bv().buffer().changeRefsIfUnique(old_key,
|
||||||
params()["key"], CITE_CODE);
|
params()["key"], CITE_CODE);
|
||||||
cur.forceBufferUpdate();
|
cur.forceBufferUpdate();
|
||||||
buffer_->invalidateBibinfoCache();
|
buffer().invalidateBibinfoCache();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user