When converting, indicate clearly when buffer should exist

This makes coverity happy, and makes out code a tiny tiny bit better
commented.
This commit is contained in:
Jean-Marc Lasgouttes 2017-04-03 12:25:17 +02:00
parent 9b0b45dc81
commit 0005876d17

View File

@ -463,6 +463,7 @@ bool Converters::convert(Buffer const * buffer,
return false; return false;
if (conv.latex()) { if (conv.latex()) {
// We are not importing, we have a buffer
LATTEST(buffer); LATTEST(buffer);
run_latex = true; run_latex = true;
string command = conv.command(); string command = conv.command();
@ -474,6 +475,8 @@ bool Converters::convert(Buffer const * buffer,
return false; return false;
} else { } else {
if (conv.need_aux() && !run_latex) { if (conv.need_aux() && !run_latex) {
// We are not importing, we have a buffer
LATTEST(buffer);
string command; string command;
switch (runparams.flavor) { switch (runparams.flavor) {
case OutputParams::DVILUATEX: case OutputParams::DVILUATEX: