Typos and comment improvements.

This commit is contained in:
Thibaut Cuvelier 2021-10-13 03:01:11 +02:00
parent 46b8101800
commit b5533a24f4
3 changed files with 8 additions and 6 deletions

View File

@ -2106,8 +2106,7 @@ Buffer::ExportStatus Buffer::makeDocBookFile(FileName const & fname,
updateBuffer();
updateMacroInstances(OutputUpdate);
ExportStatus const retval =
writeDocBookSource(ofs, runparams, output);
ExportStatus const retval = writeDocBookSource(ofs, runparams, output);
if (retval == ExportKilled)
return ExportKilled;
@ -4371,6 +4370,9 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
void Buffer::setMathFlavor(OutputParams & op) const
{
// Passes the way to generate formulae to the XHTML output code.
// In particular, this function has no impact on the DocBook code, as it
// uses another mechanism to handle math flavours.
switch (params().html_math_output) {
case BufferParams::MathML:
op.math_flavor = OutputParams::MathAsMathML;
@ -4414,7 +4416,7 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
Converters converters = theConverters();
bool need_nice_file = false;
if (find(backs.begin(), backs.end(), format) == backs.end()) {
// Get shortest path to format
// Get the shortest path to format
converters.buildGraph();
Graph::EdgePath path;
for (string const & sit : backs) {

View File

@ -123,7 +123,7 @@ graphics::PreviewImage const *
RenderPreview::getPreviewImage(Buffer const & buffer) const
{
graphics::PreviewLoader const * loader = buffer.loader();
LASSERT(loader, return 0);
LASSERT(loader, return nullptr);
return loader->preview(snippet_);
}