]> git.lyx.org Git - lyx.git/commitdiff
buffer_ --> buffer()
authorRichard Heck <rgheck@comcast.net>
Tue, 10 Aug 2010 14:28:24 +0000 (14:28 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 10 Aug 2010 14:28:24 +0000 (14:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35114 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBibitem.cpp

index d650feab0665d43e20ae977f43bf46d1ae7ddff8..9024c8fe515dbc2fadda04324db89ef33665285f 100644 (file)
@@ -54,7 +54,7 @@ docstring const key_prefix = from_ascii("key-");
 InsetBibitem::InsetBibitem(Buffer * buf, InsetCommandParams const & p)
        : InsetCommand(buf, p, "bibitem")
 {
-       buffer_->invalidateBibinfoCache();
+       buffer().invalidateBibinfoCache();
        if (getParam("key").empty())
                setParam("key", key_prefix + convert<docstring>(++key_counter));
 }
@@ -63,7 +63,7 @@ InsetBibitem::InsetBibitem(Buffer * buf, InsetCommandParams const & p)
 InsetBibitem::~InsetBibitem()
 {
        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));
        }
        setParam("key", key);
+       buffer().invalidateBibinfoCache();
 }
 
 
@@ -127,7 +128,7 @@ void InsetBibitem::doDispatch(Cursor & cur, FuncRequest & cmd)
                        cur.bv().buffer().changeRefsIfUnique(old_key,
                                params()["key"], CITE_CODE);
                        cur.forceBufferUpdate();
-                       buffer_->invalidateBibinfoCache();
+                       buffer().invalidateBibinfoCache();
                }
                break;
        }