]> git.lyx.org Git - lyx.git/blobdiff - src/BiblioInfo.cpp
Context menu item to add unknown branch (rest of #7643)
[lyx.git] / src / BiblioInfo.cpp
index 4efe50884c2b34302f0a89932b4ac7b0311ddc46..bc46e17448d9aa7f0d8a048deb3910c521ad14a3 100644 (file)
@@ -561,7 +561,7 @@ docstring const BibTeXInfo::getLabel(BibTeXInfo const * const xref,
        Buffer const & buf, string const & format, bool richtext,
        docstring before, docstring after, docstring dialog, bool next) const
 {
-       docstring loclabel_;
+       docstring loclabel;
 
        /*
        if (!is_bibtex_) {
@@ -572,12 +572,12 @@ docstring const BibTeXInfo::getLabel(BibTeXInfo const * const xref,
        */
 
        int counter = 0;
-       loclabel_ = expandFormat(format, xref, counter, buf, richtext,
+       loclabel = expandFormat(format, xref, counter, buf, richtext,
                before, after, dialog, next);
 
-       if (!loclabel_.empty())
-               loclabel_ = convertLaTeXCommands(loclabel_);
-       return loclabel_;
+       if (!loclabel.empty())
+               loclabel = convertLaTeXCommands(loclabel);
+       return loclabel;
 }