summaryrefslogtreecommitdiffstats
path: root/src/template.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-23 18:44:37 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-23 18:44:37 (GMT)
commit5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb (patch)
treeab08dcf78d2df5bd15b3ca3887e13fa7e1fa17a2 /src/template.cpp
parent38e9ec69c2c2738cd4ca238630cab24cde1a9200 (diff)
downloadDoxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.zip
Doxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.tar.gz
Doxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.tar.bz2
Refactoring: replace QGString by std::ostringstream
Diffstat (limited to 'src/template.cpp')
-rw-r--r--src/template.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/template.cpp b/src/template.cpp
index 9af1d60..e96b16a 100644
--- a/src/template.cpp
+++ b/src/template.cpp
@@ -3355,7 +3355,7 @@ class TemplateNodeBlock : public TemplateNodeCreator<TemplateNodeBlock>
if (nb) // block is overruled
{
ci->push();
- std::stringstream ss;
+ std::ostringstream ss(std::ios_base::ate);
// get super block of block nb
TemplateNodeBlock *sb = ci->blockContext()->get(m_blockName);
if (sb && sb!=nb && sb!=this) // nb and sb both overrule this block
@@ -3641,7 +3641,7 @@ class TemplateNodeCreate : public TemplateNodeCreator<TemplateNodeCreate>
{
TemplateEscapeIntf *escIntf = ci->escapeIntf();
ci->selectEscapeIntf(extension);
- std::stringstream os;
+ std::ostringstream os(std::ios_base::ate);
createTemplate->render(os,c);
QCString out = os.str();
stripLeadingWhiteSpace(out);
@@ -3714,7 +3714,7 @@ class TemplateNodeTree : public TemplateNodeCreator<TemplateNodeTree>
TemplateContext *c = ctx->templateCtx;
TemplateContextImpl* ci = dynamic_cast<TemplateContextImpl*>(c);
if (ci==0) return QCString(); // should not happen
- std::stringstream ss;
+ std::ostringstream ss(std::ios_base::ate);
c->push();
TemplateVariant node;
TemplateListIntf::ConstIterator *it = ctx->list->createIterator();