summaryrefslogtreecommitdiffstats
path: root/src/dotlegendgraph.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/dotlegendgraph.cpp
parent38e9ec69c2c2738cd4ca238630cab24cde1a9200 (diff)
downloadDoxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.zip
Doxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.tar.gz
Doxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.tar.bz2
Refactoring: replace QGString by std::ostringstream
Diffstat (limited to 'src/dotlegendgraph.cpp')
-rw-r--r--src/dotlegendgraph.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotlegendgraph.cpp b/src/dotlegendgraph.cpp
index c1f800b..0389a1d 100644
--- a/src/dotlegendgraph.cpp
+++ b/src/dotlegendgraph.cpp
@@ -25,7 +25,7 @@
void DotLegendGraph::writeGraph(const char *path)
{
- std::stringstream ts;
+ std::ostringstream ts(std::ios_base::ate);
DotGraph::writeGraph(ts, GOF_BITMAP, EOF_Html, path, "", "", FALSE, 0);
if (getDotImageExtension()=="svg")
@@ -45,7 +45,7 @@ void DotLegendGraph::computeTheGraph()
{
int fontSize = Config_getInt(DOT_FONTSIZE);
QCString fontName = Config_getString(DOT_FONTNAME);
- std::stringstream md5stream;
+ std::ostringstream md5stream(std::ios_base::ate);
writeGraphHeader(md5stream,theTranslator->trLegendTitle());
md5stream << " Node9 [shape=\"box\",label=\"Inherited\",fontsize=\"" << fontSize << "\",height=0.2,width=0.4,fontname=\"" << fontName << "\",fillcolor=\"grey75\",style=\"filled\" fontcolor=\"black\"];\n";
md5stream << " Node10 -> Node9 [dir=\"back\",color=\"midnightblue\",fontsize=\"" << fontSize << "\",style=\"solid\",fontname=\"" << fontName << "\"];\n";