]> git.lyx.org Git - features.git/commitdiff
Minor code simplification.
authorRichard Heck <rgheck@lyx.org>
Wed, 27 Mar 2013 22:36:01 +0000 (18:36 -0400)
committerRichard Heck <rgheck@lyx.org>
Wed, 27 Mar 2013 22:36:01 +0000 (18:36 -0400)
src/insets/InsetGraphics.cpp

index ffdbd4809635fff1c22a4209ca571d11e9684554..70b43c4da1c851ce540ce7483966523aa002a26b 100644 (file)
@@ -1049,11 +1049,9 @@ void InsetGraphics::editGraphics(InsetGraphicsParams const & p) const
 
 void InsetGraphics::addToToc(DocIterator const & cpit, bool output_active) const
 {
-       TocBackend & backend = buffer().tocBackend();
-
        //FIXME UNICODE
        docstring const str = from_utf8(params_.filename.onlyFileName());
-       backend.toc("graphics").push_back(TocItem(cpit, 0, str, output_active));
+       buffer().tocBackend().toc("graphics").push_back(TocItem(cpit, 0, str, output_active));
 }