From 42bac34be2b7b4beb5ee468926ed0bf0e7528fd2 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 28 Mar 2021 21:57:33 +0200 Subject: Fixed compilation problem when enableing sqlite3 --- src/qhpxmlwriter.cpp | 3 +-- src/qhpxmlwriter.h | 5 ++--- src/searchindex.cpp | 2 +- src/sqlite3gen.cpp | 2 +- src/utf8.cpp | 4 ++-- src/util.cpp | 8 ++++---- 6 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/qhpxmlwriter.cpp b/src/qhpxmlwriter.cpp index fe3b380..5915841 100644 --- a/src/qhpxmlwriter.cpp +++ b/src/qhpxmlwriter.cpp @@ -18,8 +18,7 @@ #include "util.h" QhpXmlWriter::QhpXmlWriter() - : m_backend(std::ios_base::ate), m_indentLevel(0), - m_curLineIndented(false), m_compress(false) + : m_indentLevel(0), m_curLineIndented(false), m_compress(false) { } diff --git a/src/qhpxmlwriter.h b/src/qhpxmlwriter.h index bc927d4..6b3ccb9 100644 --- a/src/qhpxmlwriter.h +++ b/src/qhpxmlwriter.h @@ -18,8 +18,7 @@ #define QHPXMLWRITER_H #include - -class TextStream; +#include "textstream.h" class QhpXmlWriter { @@ -52,7 +51,7 @@ class QhpXmlWriter char const * const * attributes = 0); void closePure(char const * elementName); - std::ostringstream m_backend; + TextStream m_backend; int m_indentLevel; bool m_curLineIndented; bool m_compress; diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 6b83940..9afb7cb 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -552,7 +552,7 @@ QCString searchName(const Definition *d) QCString searchId(const Definition *d) { std::string s = searchName(d).str(); - std::ostringstream t(std::ios_base::ate); + TextStream t; for (size_t i=0;i