summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index 59d4868..4c3f800 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -301,7 +301,7 @@ static QCString getConvertLatexMacro()
static QCString getSearchBox(bool serverSide, QCString relPath, bool highlightSearch)
{
- std::stringstream t;
+ std::ostringstream t(std::ios_base::ate);
if (serverSide)
{
writeServerSearchBox(t, relPath, highlightSearch);
@@ -1565,9 +1565,9 @@ void HtmlGenerator::endClassDiagram(const ClassDiagram &d,
startSectionSummary(t,m_sectionCount);
endSectionSummary(t);
startSectionContent(t,m_sectionCount);
- std::stringstream tt;
+ std::ostringstream tt(std::ios_base::ate);
d.writeImage(tt,dir(),m_relPath,fileName);
- if (tt.tellg()>0)
+ if (tt.tellp()>0)
{
t << " <div class=\"center\">\n";
t << " <img src=\"";