]> git.lyx.org Git - features.git/commitdiff
Fix missing xhtml output found by cppcheck
authorGeorg Baum <baum@lyx.org>
Sun, 20 Sep 2015 18:47:33 +0000 (20:47 +0200)
committerGeorg Baum <baum@lyx.org>
Sun, 20 Sep 2015 18:47:33 +0000 (20:47 +0200)
Actually I don't know if this operator is used at all, but if it exists then
it must output something.

src/output_xhtml.cpp

index 959262d9cd469c595c08b6eb12be502902a5c66d..9463573d00087c6dd37684f85d292048cbd6cd84 100644 (file)
@@ -495,7 +495,7 @@ XHTMLStream & XHTMLStream::operator<<(char_type c)
 XHTMLStream & XHTMLStream::operator<<(char c)
 {
        clearTagDeque();
-       string const d = html::escapeChar(c, escape_);
+       os_ << html::escapeChar(c, escape_);
        escape_ = ESCAPE_ALL;
        return *this;
 }