]> git.lyx.org Git - lyx.git/commitdiff
add clarifying comment
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 14 Nov 2006 20:33:13 +0000 (20:33 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Tue, 14 Nov 2006 20:33:13 +0000 (20:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15929 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insetbibtex.C

index c0fe99bcdee483295d792483f493a8d019bc3c76..5c59adf70233edc3de9048531c985563d27162da 100644 (file)
@@ -155,6 +155,9 @@ int InsetBibtex::latex(Buffer const & buffer, odocstream & os,
        typedef boost::tokenizer<Separator, docstring::const_iterator, docstring> Tokenizer;
 
        Separator const separator(from_ascii(",").c_str());
+       // The tokenizer must not be called with temporary strings, since
+       // it does not make a copy and uses iterators of the string further
+       // down. getParam returns a reference, so this is OK.
        Tokenizer const tokens(getParam("bibfiles"), separator);
        Tokenizer::const_iterator const begin = tokens.begin();
        Tokenizer::const_iterator const end = tokens.end();